how Create program using binary in CUDA?

Viewed 64

I had code in OpenCL where I use clCreateProgramWithBinary() to create the program from binary. I am porting this application to CUDA and I don't find any similar function.

Can someone help me with how I can create the program from binary or equivalent of clCreateProgramWithBinary in CUDA?

1 Answers

AFAIK, the CUDA equivalent of clCreateProgramWithBinary() will be cuModuleLoad (). Please check cuModuleLoad () for precompiled binary. It loads a compute module.

For further reference please check module management in CUDA Driver API API Reference Manual.

Related