2.1.3. NvRules 非成员函数。

非成员实用工具函数。

函数

IContext * NV::Rules::get_context(ContextHandle h)

转换上下文句柄。

IEvaluator * NV::Rules::get_evaluator(ContextHandle h)

返回评估器对象。

std::string NV::Rules::get_version(ContextHandle h)

获取此接口的版本号。

void NV::Rules::raise_exception(ContextHandle h, const char *msg)

引发 Python 异常。

类型定义

函数

IContext *NV::Rules::get_context(ContextHandle h)

转换上下文句柄。

将上下文句柄 h 转换为 IContext 对象

IEvaluator *NV::Rules::get_evaluator(ContextHandle h)

返回评估器对象。

从上下文句柄 h 返回 IEvaluator 对象

std::string NV::Rules::get_version(ContextHandle h)

获取此接口的版本号。

以 <年>.<主版本>.<次版本> 形式的字符串返回此接口的版本号。它与此接口来源的 Nsight Compute 版本相匹配。

void NV::Rules::raise_exception(ContextHandle h, const char *msg)

引发 Python 异常。

引发带有 msg 的 Python 异常。如果上下文没有选择屏蔽异常,这将终止脚本执行

类型定义

typedef unsigned long long NV::Rules::ContextHandle