I’m trying to link two shared libraries containing different versions of my CUDA kernel to my application. The application doesn’t have any CUDA dependency, its all in the shared libraries. Each shared library queries the number of devices on startup using cudaGetDeviceCount and cudaGetDeviceProperties.
This works fine if i build them using the same configuration. But if i build the first library with emulation mode and the second with release mode, both kernels won’t be executed. The kernel call returns immediately without any calculations.
Is it possible to have both configurations in one application?