Allocating __global storage from within a kernel?

Moderator: dar

Allocating __global storage from within a kernel?

Postby nickoppen » Thu Jul 02, 2015 6:46 am

Hi,

I want to share some data between cores in a simple (but not very efficient) manner so I declared

__global float linkError[SOMEHUGEAMOUNTOFSPACE]

inside a kernel with very sad results. Using an array already clmalloced on the host worked fine.

Is there any way of doing a clmalloc of global storage from within a kernel?

nick
Sharing is what makes the internet Great!
User avatar
nickoppen
 
Posts: 266
Joined: Mon Dec 17, 2012 3:21 am
Location: Sydney NSW, Australia

Re: Allocating __global storage from within a kernel?

Postby tnt » Thu Jul 02, 2015 12:59 pm

I don't think OpenCL allows that.
tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am


Return to OpenCL

Who is online

Users browsing this forum: No registered users and 9 guests

cron