How can I call a ptx function from CUDA C?

前端 未结 2 1023
心在旅途
心在旅途 2021-01-21 09:46

I am trying to find a way to call a ptx function (.func) from CUDA C. Say I had a ptx function like this:

.func (.reg .s32 %res) inc_ptr ( .reg .s32 %ptr, .reg .         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-21 10:14

    As far as i know, CUDA C supports asm, there is a doc which locate in doc directory after cuda tool kit installed.

提交回复
热议问题