Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 推力误差:libc++;abi.dylib:terminate调用引发异常。中止陷阱:6_Macos_Cuda_Gpu_Gpgpu_Thrust - Fatal编程技术网

Macos 推力误差:libc++;abi.dylib:terminate调用引发异常。中止陷阱:6

Macos 推力误差:libc++;abi.dylib:terminate调用引发异常。中止陷阱:6,macos,cuda,gpu,gpgpu,thrust,Macos,Cuda,Gpu,Gpgpu,Thrust,尝试使用推力将数据从主机复制到设备。它正在输出: libc++abi.dylib: terminate called throwing an exception Abort trap: 6 代码: 我已经安装了CUDA 5.5,我相信它已经自动安装了推力1.6.0。结果证明是5.5生产版本中的一个bug。我卸载并重新安装了5.0,一切正常。结果是5.5生产版本中的一个bug。我卸载并重新安装了5.0,一切正常。您有什么问题?你发布的代码是完全有效的,如果我在OSX上使用CUDA 5.0尝试它,

尝试使用推力将数据从主机复制到设备。它正在输出:

libc++abi.dylib: terminate called throwing an exception
Abort trap: 6
代码:



我已经安装了CUDA 5.5,我相信它已经自动安装了推力1.6.0。

结果证明是5.5生产版本中的一个bug。我卸载并重新安装了5.0,一切正常。

结果是5.5生产版本中的一个bug。我卸载并重新安装了5.0,一切正常。

您有什么问题?你发布的代码是完全有效的,如果我在OSX上使用CUDA 5.0尝试它,它会正确运行,但在我的操作系统上似乎不起作用。它正在输出上面的错误。也许是5.5版本的错误?我目前已经安装了生产版本。cuda 5.5生产版本附带推力v1.7,您有什么问题?你发布的代码是完全有效的,如果我在OSX上使用CUDA 5.0尝试它,它会正确运行,但在我的操作系统上似乎不起作用。它正在输出上面的错误。也许是5.5版本的错误?我目前已经安装了生产版本。cuda 5.5生产版本附带推力v1.7版,我不确定。我已经安装了cuda 5.5生产版,您的代码对我来说编译和运行良好,没有错误。你的代码非常琐碎,所以如果有一个bug导致了它,那将是令人惊讶的。不知道还能说些什么。今天早上我升级到5.5,推力停止工作。降级到5,IT工作。你使用哪个主机C++编译器?正常的CUDA程序运行正常吗?@RobertCrovella gcc版本4.2.1(基于Apple Inc.build 5658)(LLVM build 2336.11.00)我不相信。我已经安装了cuda 5.5生产版,您的代码对我来说编译和运行良好,没有错误。你的代码非常琐碎,所以如果有一个bug导致了它,那将是令人惊讶的。不知道还能说些什么。今天早上我升级到5.5,推力停止工作。降级到5,IT工作。你使用哪个主机C++编译器?正常的CUDA程序运行正常吗?@RobertCrovella gcc版本4.2.1(基于Apple Inc.build 5658)(LLVM build 2336.11.00)
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
void test()
{
    thrust::host_vector<int> H(4);
    H[0] = 14;
    H[1] = 20;
    H[2] = 38;
    H[3] = 46;
    thrust::device_vector<int> D = H; // causing error
}
int main()
{
    test(); 
    return 0;
}
$ nvcc test.cu -o test
$ ./test