osx - Thrust Error: libc++abi.dylib: terminate called throwing an exception. Abort trap: 6 -


trying simple copy data host device using thrust. it's outputting:

libc++abi.dylib: terminate called throwing exception abort trap: 6 

code:

#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; } 

here's how compiled , ran in os x:

$ nvcc test.cu -o test $ ./test 

i have cuda 5.5 installed believe installed thrust 1.6.0 automatically.

turns out bug in 5.5 production release. uninstalled , reinstalled 5.0, works fine.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -