title: Generating Relocatable Device Code using Nvidia Nsight
body: <p>I'm trying to compile a dynamic parallelism example on CUDA and when i try to compile it gives and error saying, </p>
  
  <p><code>kernel launch from __device__ or __global__ functions requires separate compilation modes</code></p>
  
  <p>Later found that I have to set the <code>--relocatable-device-code</code> flag to <code>true</code>. But, is there a flag to set in order to make the set <code>relocatable-device-code</code> to <code>true</code> in Nsight Eclipse?</p>