Intel® C++ Compiler 16.0 User and Reference Guide

_GFX_svm_alloc

Allocates a buffer in memory to support shared virtual memory. This topic only applies to Intel® 64 and IA-32 architectures targeting Intel® Graphics Technology.

Syntax

void* _GFX_svm_alloc(size_t buffer_size);

Parameters

buffer_size

The size of the buffer you want to allocate, in bytes.

Description

This function allocates a buffer in memory to support shared virtual memory.

You must allocate a buffer in order to use the processor graphics to operate on pointers.

Return Values

A pointer to SVM memory buffer, 4KB aligned

Memory allocation succeeded.

0

Memory allocation failed.