CUDA 有汇编语言吗? [英] Is there an assembly language for CUDA?

查看:31
本文介绍了CUDA 有汇编语言吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我问这个是因为我知道有一种方法可以使用二进制文件而不是源文件.

I'm asking this because I know there's a way to use binary files instead of source files.

另外,我猜用汇编语言模拟函数指针会更容易.除非 GPU 上的程序集与 CPU 上的程序集完全不同.

Also, I'm guessing that with an assembly language, it would be easier to simulate function pointers. Unless the assembly on a GPU is totally different from the one on a CPU.

推荐答案

你可能想看看 PTX.NVIDIA 在 CUDA 4.0 文档中提供了描述它的文档.

You might want to take a look at PTX. NVIDIA provides a document describing it in the CUDA 4.0 documentation.

http://developer.nvidia.com/nvidia-gpu-computing-documentation

NVIDIA 将 PTX 描述为Ta 低级并行线程执行虚拟机和指令集架构 (ISA).PTX 将 GPU 公开为数据并行计算设备."不完全像 x86 汇编,但您可能会发现它很有趣.

NVIDIA describes PTX as "Ta low-level parallel thread execution virtual machine and instruction set architecture (ISA). PTX exposes the GPU as a data-parallel computing device." Not exactly like x86 assembly, but you might find it interesting reading.

这篇关于CUDA 有汇编语言吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆