PTX programming in Visual Studio

Is there a way to directly include a ptx in visual studio c++ project for the purposes of assembly programming?

You can use:

  1. Inline PTX [url]Inline PTX Assembly :: CUDA Toolkit Documentation

  2. 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.