asherliu / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

tester TestPairStableSort crashes with omp #369

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
jhoberock@jhoberock-dt:~/dev/hg/thrust-tot/testing$ scons backend=omp 
tests=TestPairStableSort
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
nvcc -o pair_sort.o -c -arch=sm_10 -Xcompiler 
-DTHRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_OMP -Xcompiler -O2 -Xcompiler 
-fopenmp -Xcompiler -Wall -I /home/jhoberock/dev/hg/thrust-tot -I 
/usr/local/cuda/include -I /home/jhoberock/dev/hg/thrust-tot/testing 
pair_sort.cu
nvcc -o pair_sort_by_key.o -c -arch=sm_10 -Xcompiler 
-DTHRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_OMP -Xcompiler -O2 -Xcompiler 
-fopenmp -Xcompiler -Wall -I /home/jhoberock/dev/hg/thrust-tot -I 
/usr/local/cuda/include -I /home/jhoberock/dev/hg/thrust-tot/testing 
pair_sort_by_key.cu
gcc -o tester pair_sort.o pair_sort_by_key.o testframework.o 
-L/usr/local/cuda/lib64 -lcudart -lgomp
scons: done building targets.
jhoberock@jhoberock-dt:~/dev/hg/thrust-tot/testing$ ./tester TestPairStableSort
Running 1 unit tests.
Segmentation fault

Seems to call insertion_sort with an invalid range

Original issue reported on code.google.com by jaredhoberock on 31 Aug 2011 at 11:53

GoogleCodeExporter commented 8 years ago
fixed by Revision ac54e4a007c9

Original comment by wnbell on 1 Sep 2011 at 8:15