Search code examples
cudansight

CUDA 5 NSIGHT set compilation flag


In order to compile project for Kepler K20 we need to set -rdc=true flag. How can we set this flag in nsight eclipse edition? my version is CUDA 5.K20. nsight eclipse edition


Solution

  • To enable separate compilation in Nsight Eclipse Edition:

    1. Open project properties
    2. In the left-hand tree, select "Build"/"CUDA"
    3. Select "Separate Compilation" radio button at the top of the page.
    4. Clean the project and rebuild.

    This way Nsight will specify -rdc=true both to the compiler and linker.