For an OpenCL program intended to run on CPU(4 cores),2GB RAM,
Inside the kernel for each work item i need to make an array of 10000 * 2000 of type int.
Could not declare it just like int array ; because of the big size.The Run Fails if tried.
Can anyone suggest me a way to make this work.
i.e. The kernel running on each of the 4 cores be able to create an int array of 10000 * 2000 size of its own.
I tried with global memory being passed as a kernel argument but it appears like kernels overwrite each other in the space or something like that (inconsistent outputs were seen on each run).
Any help will be greatly appreciated ..at least how to handle the global memory without overwrite if that itself is the way to go