Quantcast
Channel: Community : All Content - OpenCL
Viewing all articles
Browse latest Browse all 2400

2D array using clSVMAlloc ?

$
0
0

Hi ,

 

I can write a 2D dynamic array as follow :

"""

int size = 256 ;

int *temp[5] ;

temp[0] = (int *)malloc(sizeof(int) * size);

"""

 

But when I want to dynamic create a 2D array by using clSVMAlloc as previously said , how could I do this ?

 

Thanks : D


Viewing all articles
Browse latest Browse all 2400

Latest Images

Trending Articles



Latest Images