OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1718 Discussions

Access violation when calling clReleaseCommandQueue

Hendrik_W_
Beginner
489 Views

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

 

 

0 Kudos
3 Replies
Surbhi_M_Intel
Employee
489 Views

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

0 Kudos
Hendrik_W_
Beginner
489 Views

Hi Surbhi ,

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

Thanks,

Hendrik

0 Kudos
Surbhi_M_Intel
Employee
489 Views

Hi Hendrik,

Great. Thank you for your question again!

Thanks,
-Surbhi

0 Kudos
Reply