Fatal: parallel_for failed: cudaErrorInvalidDeviceFunction: invalid device function

I use cuda 10.02 for acceleration purpose. When I run my program with clion, I get the following error:

Fatal: parallel_for failed: cudaErrorInvalidDeviceFunction: invalid device function
Process finished with exit code 1

I appreciate any help!

Additional Information:
1)Native Linux, ubuntu 18.04
2)nvidia-smi


3)g++ and nvcc

The issue has been solved. It was due to a library file that doesn’t support compute combability 7.5