inline PTX in CUDA 4.0

Hi,

I could not find any information on inline PTX in the programming guide. Any quick reference? Where can I find more information?

Thanks.

There is a separate pdf in the toolkit call “Using inline PTX Assembly in CUDA”.

for some reason I cannot find any such pdf :confused:

Which toolkit version are you using? The linux toolkit I have contains these pdfs:

cuda:~/Desktop/packages$ sh ./cudatoolkit_4.0.11_linux_64_ubuntu10.10.run --list | grep pdf

-rw-r--r-- buildmeister/buildmeister    677991 2011-02-21 18:46 ./doc/CUDA_Developer_Guide_for_Optimus_Platforms.pdf

-rw-r--r-- buildmeister/buildmeister    770005 2011-02-21 18:46 ./doc/CUDA_4.0_Readiness_Tech_Brief.pdf

-rw-r--r-- buildmeister/buildmeister    706554 2011-02-21 18:46 ./doc/nvcc.pdf

-rw-r--r-- buildmeister/buildmeister   5684406 2011-02-21 18:46 ./doc/CUDA_Toolkit_Reference_Manual.pdf

-rw-r--r-- buildmeister/buildmeister   2635531 2011-02-21 18:46 ./doc/ptx_isa_1.4.pdf

-rw-r--r-- buildmeister/buildmeister    936295 2011-02-21 18:46 ./doc/CUBLAS_Library.pdf

-rw-r--r-- buildmeister/buildmeister    385003 2011-02-21 18:46 ./doc/CUFFT_Library.pdf

-rw-r--r-- buildmeister/buildmeister   3742144 2011-02-21 18:46 ./doc/NPP_Library.pdf

-rw-r--r-- buildmeister/buildmeister   3195559 2011-02-21 18:46 ./doc/CUDA_C_Programming_Guide.pdf

-rw-r--r-- buildmeister/buildmeister   2147581 2011-02-21 18:46 ./doc/CUDA_C_Best_Practices_Guide.pdf

-rw-r--r-- buildmeister/buildmeister    255131 2011-02-21 18:46 ./doc/cuobjdump.pdf

-rw-r--r-- buildmeister/buildmeister    504350 2011-02-21 18:46 ./doc/cuda-memcheck.pdf

-rw-r--r-- buildmeister/buildmeister    296935 2011-02-21 18:46 ./doc/Fermi_Compatibility_Guide.pdf

-rw-r--r-- buildmeister/buildmeister   2994783 2011-02-21 18:46 ./doc/ptx_isa_2.3.pdf

-rw-r--r-- buildmeister/buildmeister    709981 2011-02-21 18:46 ./doc/OpenCL_Programming_Overview.pdf

-rw-r--r-- buildmeister/buildmeister   1474319 2011-02-21 18:46 ./doc/OpenCL_Programming_Guide.pdf

-rw-r--r-- buildmeister/buildmeister    560356 2011-02-21 18:46 ./doc/Thrust_Quick_Start_Guide.pdf

-rw-r--r-- buildmeister/buildmeister    801536 2011-02-21 18:46 ./doc/CUDA_VideoDecoder_Library.pdf

-rw-r--r-- buildmeister/buildmeister   1566476 2011-02-21 18:46 ./doc/OpenCL_Best_Practices_Guide.pdf

-rw-r--r-- buildmeister/buildmeister    556665 2011-02-21 18:46 ./doc/CUSPARSE_Library.pdf

-rw-r--r-- buildmeister/buildmeister    823390 2011-02-21 18:46 ./doc/CURAND_Library.pdf

-rw-r--r-- buildmeister/buildmeister    725019 2011-02-21 18:46 ./doc/cuda-gdb.pdf

-rw-r--r-- buildmeister/buildmeister    271259 2011-02-21 18:46 ./doc/Fermi_Tuning_Guide.pdf

-rw-r--r-- buildmeister/buildmeister    679267 2011-02-21 18:46 ./doc/OpenCL_Jumpstart_Guide.pdf

-rw-r--r-- buildmeister/buildmeister    245088 2011-02-21 18:46 ./doc/Using_Inline_PTX_Assembly_In_CUDA.pdf

-rw-r--r-- buildmeister/buildmeister   2962466 2011-02-21 18:46 ./computeprof/doc/Compute_Visual_Profiler_User_Guide.pdf

You can see the one you need near the bottom of the list.

thanks. Some problem with windows I guess. I reinstalled and now I can see the pdfs.

You can also find some example code in this [topic=194835]topic[/topic].