Hi everyone,
I am getting this error message “Error: unsupported operation” while trying to compile this piece of code :
int a = 20;
int b = 30;
atomicMin(&b, a-3);//the log trace points out to this line
The official doc states clearly that CUDA supports :
int atomicMin(int* address, int val);
I would like also to stress that I am using this code snippet within the body of a kernel. Is that the reason why I am getting this “Unsupported operation” error? If so how can I circumvent this problem (Id o need to calculate the min of two integers within the kernel since I am unable to make a host call for std::min from the device)?
Could anyone please point me to the error source here? Thank you.