I am newbie using Cuda. When run a example about atomicAdd_system but it did not run. My GPU is Quadro RTX 6000 with Compute capability: 7.5 (I search Compute capability on the internet) and this is my code:
__global__ void mykernel(int *addr) {
atomicAdd_system(addr, 10);
}
void foo() {
int *addr;
cudaMallocManaged(&addr, 4);
*addr = 0;
mykernel<<<10,10>>>(addr);
__sync_fetch_and_add(addr, 10);
}
Thank you!