Is there a way to directly include a ptx in visual studio c++ project for the purposes of assembly programming?
You can use:
-
Inline PTX [url]Inline PTX Assembly :: CUDA Toolkit Documentation
-
A driver API approach. Look at the sample driver API projects. For example the vectorAddDrv project shows the use of the driver API to convert a .cu kernel file into a .ptx kernel file. From there it demonstrates loading of the PTX kernel. If you write a proper .ptx file, you should be able to use a similar method to load your own PTX kernel file.