NVCC的#pragma nv_exec_check_disable和/或#pragma hd_warning_disable是否有任何文档? [英] Is there any documentation for NVCC's `#pragma nv_exec_check_disable` and/or `#pragma hd_warning_disable`?

查看:64
本文介绍了NVCC的#pragma nv_exec_check_disable和/或#pragma hd_warning_disable是否有任何文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

某些项目使用

  #pragma nv_exec_check_disable 

和/或

  #pragma hd_warning_disable 

使有关


警告:不允许从__host__ __device__函数调用__host__函数`


但是它们似乎完全没有记载,例如



在任何地方都有相关文档吗?

解决方案

正如评论中指出的那样,现在(不正确地)主持人删除了答案, cicc (设备代码的前端解析器)支持的所有编译指示仍未记录。



但是,如果您真的对可能支持或可能不支持的内容感兴趣,可以查看存储在 cicc 并发现可执行文件中显然存在功能控制实用程序的聚宝盆。不幸的是,所有这些文件都没有记载。


Some projects use

#pragma nv_exec_check_disable

and/or

#pragma hd_warning_disable

to silence NVCC warnings about

warning: calling a __host__ function from a __host__ __device__ function is not allowed`

However they seem completely undocumented, e.g. in the CUDA 9.1 reference.

Is there any relevant documentation anywhere ?

解决方案

As was indicated in comments and a now (incorrectly) moderator deleted answer, all pragmas supported by cicc (the front end parser for device code) remain undocumented.

However, if you are truly interested in what might or might not be supported, you can look through the strings stored in ciccand see that there are an apparent cornucopia of feature control pragmas in the executable. All undocumented, unfortunately.

这篇关于NVCC的#pragma nv_exec_check_disable和/或#pragma hd_warning_disable是否有任何文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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