腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(1104)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
cuda
thrust
::for_each与
thrust
::counting_iterator
当提供一个
thrust
::for_each时,我似乎无法让counting_iterator算法工作。::host_vector<int> h_vec(10);
thrust
::for_each(h_vec.begin(),h_vec.end(), print_Functor());
thrus
浏览 3
修改于2016-10-06
得票数 0
回答已采纳
1
回答
在
thrust
::device_vector上使用
thrust
::min_element崩溃(CUDA推力)
以下CUDA推力程序崩溃:#include <
thrust
/extrema.h> { for (int i(0); i < 1000; ++i) { }
thrust
::min_element(vec.begin(), vec.end()
浏览 0
提问于2012-01-30
得票数 3
回答已采纳
1
回答
thrust
::device_vector错误
我正在尝试从
thrust
::host_vector复制到
thrust
::device_vector,两者的类型都是Sequence,这是我已经实现的一个类。void Ind_Table_Filling() //some Code // some code Ind_Tabel_V.push_b
浏览 0
修改于2012-04-02
得票数 2
1
回答
类的CUDA
thrust
::device_vector
这是我的Cell.h#include <
thrust
/device_vector.h>#include <
thrust
/reduce.h> #include "Tre
浏览 1
修改于2015-03-11
得票数 0
回答已采纳
1
回答
cuda
thrust
::remove_if为device_vector抛出"
thrust
::system::system_error“?
首先,我尝试了自己的代码:{
thrust
::sequence(AA.begin(), AA.end());
thrust
::fill(SS.begin(), SS.begin() + 5, true);
thrust
::device_vector<int> devA
浏览 7
修改于2017-05-23
得票数 1
回答已采纳
1
回答
如何使用指针使用
thrust
::copy_if
= 0);};double out[5]; double *test1;
thrust
::copy_if(
thrust
::host,gauss_res, gaus
浏览 1
修改于2020-10-21
得票数 0
回答已采纳
1
回答
如何将二维
thrust
::device_vector<
thrust
::device_vector<int>>转换为原始指针
当我在main函数中使用
thrust
::device_vector时,我可以将它正确地传递给内核函数,代码如下:
thrust
::host_vector<int> host_a(2);__global__ v
浏览 0
提问于2016-06-27
得票数 0
1
回答
thrust
::min_element就地
我查看了分析结果,发现
thrust
::min_element()调用了cudaMalloc(),因此使用了额外的内存。在归约之后,我不需要数组数据,所以我更喜欢就地查找最小元素。有可能吗?
浏览 0
提问于2012-04-06
得票数 2
1
回答
如何知道
thrust
::partition_copy结果中有多少元素
我尝试的是将设备向量作为OutputIterator参数传递,如下所示:#include <
thrust
/device_ptr.h>Some data is put in the d_data array
thr
浏览 1
修改于2020-02-13
得票数 1
回答已采纳
1
回答
thrust
::device_vector不工作
#include <
thrust
/host_vector.h>{
thrust
::host_vector<int> H(4); // initialize individual elementsstd::cout <<
浏览 7
提问于2012-10-24
得票数 0
1
回答
thrust
::remove_if返回值类型
请告诉我如何将返回值存储在变量中,并使用它来处理单独的数组dflag和dmap
thrust
::make_zip_iterator(
thrust
::make_tuple(dmapt, dflagt)), ); 其中,上面使用的谓词函数器
浏览 0
修改于2012-09-05
得票数 3
回答已采纳
2
回答
Thrust
+boost代码编译错误
它与boost+
thrust
代码相连。代码:#include <
thrust
/device_vector.h>#include <
thrust
/copy.h> #include
浏览 0
提问于2018-06-15
得票数 3
回答已采纳
1
回答
常量内存中的
thrust
::device_vector
const int n = 32;
thrust
::host_vector<float> x(n); //magic::host_vector<float> &inp
浏览 1
修改于2013-06-12
得票数 8
回答已采纳
1
回答
CUDA多设备故障,
thrust
::system_error
我开发了一个使用
thrust
的算法。但是,实验室机器上的一个干净的构建在试图生成一个
thrust
::system::system_error时抛出一个讨厌的device_vector。-关于设备2名称的一般信息: Quadro 2000计算能力: 2.1时钟速率: 1251000 kHz设备重叠:启用内核执行超时: Enabled` 我知道,为了工作,需要针对目标体系结构编译
thrust
<< "Operating on device " << device << std::end
浏览 4
修改于2014-09-24
得票数 0
回答已采纳
1
回答
thrust
::device_vector内部的结构
我有一个结构,如{ int y;}根据我在CUDA编程教程中所学到的,为了更好地进行内存合并,建议使用数组的结构而不是结构的数组。我之所以这样问,是因为我可能需要访问此device_vector中的不规则步长,并通过传
浏览 0
提问于2012-07-02
得票数 0
回答已采纳
1
回答
使用
thrust
::transform替换for循环
我很熟悉在单个for循环中使用
thrust
::for_each(
thrust
::make_zip_iterator(
thrust
::make_tuple)),但是很难想出一种使用counting_iterator
浏览 0
提问于2013-04-05
得票数 1
回答已采纳
1
回答
CUDA:较慢的推力::调用
thrust
::for_each_n后减少
我试图使用
thrust
和GK107 [GeForce GTX 650]来获取一个数字之和。<
thrust
/iterator/counting_iterator.h>#include <
thrust
/for_each.h> tt.toc();
thru
浏览 0
修改于2018-07-04
得票数 1
回答已采纳
1
回答
thrust
::unique_by_key耗尽最后一个元素
请考虑下面的简单代码:
thrust
::sequence(positions.begin(), positions.end());/copyListOfNgramCounteac
浏览 0
修改于2012-06-27
得票数 1
回答已采纳
1
回答
推力remove_if使用
thrust
::zip_iterator,如何分隔pred?
这是我的密码 `using namespace std; typedef
thrust
::device_vector<float>::iterator FloatIterator; h_values =
浏览 0
提问于2020-04-15
得票数 0
回答已采纳
1
回答
如何在CUDA中使用
thrust
::占位符初始化设备向量?
>,
thrust
::null_type,
thrust
::null_type,
thrust
::null_type,
thrust
::null_type,
thrust
::null_type,
thrust
,
thrust
::null_type,
thrust
::null_type,
thrust
::null_type,
thrust
::null_type,
thrust
::null_typ
浏览 5
修改于2016-06-14
得票数 1
回答已采纳
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券