SIMD内部函数-它们可在GPU上使用吗? [英] SIMD intrinsics - are they usable on gpus?

查看:420
本文介绍了SIMD内部函数-它们可在GPU上使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在CUDA内核或openCL这样的GPU代码中使用SIMD内在函数.有可能吗?

I'm wondering if I can use SIMD intrinsics in a GPU code like a CUDA's kernel or openCL one. Is that possible?

推荐答案

不,SIMD内在函数只是ASM代码的小包装.它们是特定于CPU的.有关它们的更多信息,请此处.

No, SIMD intrinsics are just tiny wrappers for ASM code. They are CPU specific. More about them here.

一般而言,你为什么要那样做呢? CUDA和OpenCL已经包含许多实际上是"GPU内在函数"的函数"(例如,所有这些都是

Generally speking, why whould you do that? CUDA and OpenCL already contain many "functions" which are actually "GPU intrinsics" (all of these, for example, are single-point-math intrinsics for the GPU)

这篇关于SIMD内部函数-它们可在GPU上使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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