Rutwik Choughule

Results 5 comments of Rutwik Choughule

Please check the [post installation steps](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#post-installation-actions). Looks like env variable `LD_LIBRARY_PATH` is not set, or lib files are missing from `/usr/local/cuda/lib64` (or `/usr/local/cuda/lib` for 32-bit)

If the value of `s_dem_last_length` is not equal to 1000, please use the same size for `cudaMemcpy()` on line 124. It might be copying more memory than allocated. `cudaMemcpy(s_dem_test, s_dem_GPU,...

You can check the return value of those CUDA APIs. `cudaMemcpy()` from `HostToDevice` or `DeviceToHost` might be failing due to some reason. Something like this: [checkCudaErrors()](https://github.com/NVIDIA/cuda-samples/blob/master/Common/helper_cuda.h#L595)

Maybe the 4th kernel launch is accessing some invalid index of array?

I haven't used CLion yet. But you can use following bash command to set any environment variable `export CUDACXX=` e.g. `export CUDACXX=/usr/local/cuda/bin/nvcc`