#include <cuda_runtime.h>
#include <iostream>

/*
 *  different cuda device has different atomic function, so need to adapt them
 *  https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#atomic-functions
 */

