Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any future plan to support the atomic_* data types and their related API functions? #190

Open
milladgit opened this issue Aug 3, 2020 · 0 comments

Comments

@milladgit
Copy link

Hi all,

Despite enabling required extensions on the .cl file (like below lines), I get an error at the run time.

Enabled extensions in .cl file:

#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : enable

Output from Oclgrind:

OCLGRIND FATAL ERROR (/home/user1/Oclgrind/src/core/WorkItem.cpp:1731)
Undefined external function: atomic_exchange
When creating kernel 'kernel1'

I have enabled -cl-std=2.0 when compiling/building kernels.

Here is the list of supported extensions in my output.

EXTENSION:            
cl_khr_spir                            
cl_khr_3d_image_writes                 
cl_khr_global_int32_base_atomics       
cl_khr_global_int32_extended_atomics   
cl_khr_local_int32_base_atomics        
cl_khr_local_int32_extended_atomics    
cl_khr_int64_base_atomics              
cl_khr_int64_extended_atomics          
cl_khr_byte_addressable_store          
cl_khr_fp64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant