COPRTHR-2 Mutex examples

Moderator: dar

COPRTHR-2 Mutex examples

Postby nickoppen » Wed Nov 29, 2017 9:54 am

Hello,

Are there any examples of coprthr_mutex_init() and related functions? I would like to experiment using mutexes rather than dma_wait() which is very inefficient.

I've had a look on github but the mutex examples are all from COPRTHR-1.6 and use calls that don't appear in the COPRTHR-2 documentation.

I've got the DMA interrupts working. I want to do a mutex lock before starting the next dma operation and then doing an mutex unlock when the previous one is finished. In the interrupt I'll also call the host to copy back the data from shared memory (as in my last post).

Any help would be much appreciated.

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

Return to OpenCL

Who is online

Users browsing this forum: No registered users and 4 guests

cron