Thrust如何知道如何自动配置它启动的内核? [英] How does Thrust know how to automatically configure the kernels it launches?

查看:130
本文介绍了Thrust如何知道如何自动配置它启动的内核?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Thrust能够从编码器中隐藏各种细节,并且声称Thrust在某种程度上相对于系统规范设置参数。 Thrust如何选择最佳的参数化,以及如何在不同的机器中处理各种代码?什么是Thrust的实现这样一个通用库的方法?

Thrust is able to hide a variety of details from the coder and it is claimed that Thrust sets the parameters to some degree with respect to the system specifications. How does Thrust choose the best parameterization and how does it handle a variety of codes in different machines? What is Thrust's approach to implementing such a generic library?

推荐答案

Thrust使用启发式尝试最大化CUDA的潜在占用

Thrust uses a heuristic which attempts to maximize the potential occupancy of the CUDA kernels it launches.

启发式Thrust使用的独立版本如下:

A standalone version of the heuristic Thrust uses is here:

https://github.com/jaredhoberock/cuda_launch_config

这篇关于Thrust如何知道如何自动配置它启动的内核?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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