Access violation when calling clReleaseCommandQueue

Access violation when calling clReleaseCommandQueue

I'm facing an Access violation issue when calling clReleaseCommandQueue

First-chance exception at 0x77DA3E60 (ntdll.dll) in xxx.exe: 0xC0000005: Access violation writing location 0x00000014.
Unhandled exception at 0x77DA3E60 (ntdll.dll) in xxx.exe: 0xC0000005: Access violation writing location 0x00000014.

if( m_cmd_queue ) 
 {
        clReleaseCommandQueue( m_cmd_queue ); 
        m_cmd_queue = NULL;
 }

Currently I am using Intel OpenCL SDK 2014.

 

Below is the detail spec of my machine

OS   :  Windows 8

CPU :  Intel Core i7-4700HQ

GPU :  Intel HD Graphics 4600  --> Driver Version 10.18.10.3621

 

Any solutions for this problem ?

 

Regards,

Hendrik

 

 

4 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

Hi Hendrik,

I tried reproducing this issue by using one of the existing samples - SimpleOptimization but didn't see any violation error.
Can you please try reproducing the issue with the existing samples or can you share your code with us?
Please let us know your findings.

Thanks,
-Surbhi

Hi Surbhi ,

Adding clFlush() and clFinish() before calling clReleaseCommandQueue() solved this issue for me.

Thanks,

Hendrik

Hi Hendrik,

Great. Thank you for your question again!

Thanks,
-Surbhi

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen