embedding cudart64_55.dll in my dll, compiling binaries to protect code

I’m making a plugin which runs from dll on windows

1-I want to embed the cudart64_55.dll inside my dll so everything is in 1 file, I’m using visual studio 2010 and 2012 for my production.

2-I want to protect my code as it is a commercial product , is “-gencode compute_10,sm_10” enough for this in visual studio (2010 and 2012).

thanks in advance

For (2), that statement does not have to do anything with code obfuscation. It simply tells nvcc compiler to generate ptx code compatible with the 1.0 Compute Capability cards. If your target audience has newer cards, you might consider compiling for other architectures while you’re at it.

As for (1), might be missing some steps, but this gives a clue: http://stackoverflow.com/questions/17774103/using-an-embedded-dll-in-an-executable
Here’s another similar post:

thanks , explain more about (2)
I want just to distribute binaries to protect my kernels , how to do so?

You’d be already ‘protecting’ your kernels if you’re distributing binaries. I do not believe there are any comprehensive cuda decompilers, but perhaps someone else can comment on this.