google-code-export / thrust

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

omp build is broken #405

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
jhoberock@jhoberock-dt:~/dev/hg/thrust-tot/testing$ scons 
backend/omp/nvcc_independence.o backend=omp
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o backend/omp/nvcc_independence.o -c 
-DTHRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_OMP -O2 -fopenmp -Wall 
-I/home/jhoberock/dev/hg/thrust-tot -I/usr/local/cuda/include -I. 
backend/omp/nvcc_independence.cpp
In file included from /usr/local/cuda/include/cuda_runtime_api.h:84,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/synchronize.inl:24,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/synchronize.h:46,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/fast_scan.inl:30,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/fast_scan.h:62,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/dispatch/scan.h:22,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/scan.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/scan.h:56,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/reduce_by_key.inl:35,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/reduce_by_key.h:52,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/reduce.inl:22,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/reduce.h:60,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/generic/find.inl:17,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/generic/find.h:39,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/find.h:21,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/find.inl:22,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/find.h:195,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/mismatch.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/mismatch.h:144,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/equal.inl:24,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/equal.h:131,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.inl:25,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.h:519,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/host_vector.h:26,
                 from ./unittest/assertions.h:3,
                 from ./unittest/unittest.h:6,
                 from backend/omp/nvcc_independence.cpp:1:
/usr/local/cuda/include/host_defines.h:175: warning: "__host__" redefined
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/config/host_device.h:36: note: 
this is the location of the previous definition
/usr/local/cuda/include/host_defines.h:177: warning: "__device__" redefined
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/config/host_device.h:40: note: 
this is the location of the previous definition
In file included from 
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/for_each.inl:27,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/for_each.h:54,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/for_each.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/for_each.h:55,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/for_each.inl:22,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/for_each.h:91,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/swap_ranges.inl:25,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/swap.inl:33,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/swap.h:127,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/contiguous_storage.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/contiguous_storage.h:92,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/uninitialized_array.h:26,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/copy_cross_space.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/copy_cross_space.h:57,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/dispatch/copy.h:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/copy.h:21,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/dispatch/copy.h:24,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/copy.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/copy.h:44,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/copy.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/copy.h:39,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/reference_base.inl:18,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/reference_base.h:138,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/device_reference.h:27,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/device_ptr.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/device_ptr.h:181,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/iterator/detail/normal_iterator.h:29,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.h:25,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/host_vector.h:26,
                 from ./unittest/assertions.h:3,
                 from ./unittest/unittest.h:6,
                 from backend/omp/nvcc_independence.cpp:1:
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:49: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:49: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:50: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:50: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:50: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:52: error: expected ';' before '}' token
In file included from 
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/for_each.inl:27,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/for_each.h:54,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/for_each.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/for_each.h:55,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/for_each.inl:22,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/for_each.h:91,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/swap_ranges.inl:25,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/swap.inl:33,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/swap.h:127,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/contiguous_storage.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/contiguous_storage.h:92,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/uninitialized_array.h:26,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/copy_cross_space.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/copy_cross_space.h:57,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/dispatch/copy.h:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/copy.h:21,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/dispatch/copy.h:24,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/copy.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/copy.h:44,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/copy.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/copy.h:39,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/reference_base.inl:18,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/reference_base.h:138,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/device_reference.h:27,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/device_ptr.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/device_ptr.h:181,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/iterator/detail/normal_iterator.h:29,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.h:25,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/host_vector.h:26,
                 from ./unittest/assertions.h:3,
                 from ./unittest/unittest.h:6,
                 from backend/omp/nvcc_independence.cpp:1:
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:65: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:65: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:66: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:66: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:66: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:67: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:67: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:67: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:68: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:68: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:68: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:69: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:69: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:69: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:70: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:70: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:70: error: expected ';' before 'void'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:72: error: expected ';' before '}' token
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:86: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:86: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:87: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:87: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:87: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:88: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:88: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:88: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:89: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:89: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:89: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:90: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:90: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:90: error: expected ';' before 'unsigned'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:91: error: expected ';' before '__forceinline__'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:91: error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:91: error: expected ';' before 'void'
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/detail/launch_closu
re.h:93: error: expected ';' before '}' token
In file included from 
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/for_each.h:54,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/for_each.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/for_each.h:55,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/for_each.inl:22,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/for_each.h:91,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/swap_ranges.inl:25,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/swap.inl:33,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/swap.h:127,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/contiguous_storage.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/contiguous_storage.h:92,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/uninitialized_array.h:26,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/copy_cross_space.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/copy_cross_space.h:57,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/dispatch/copy.h:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/copy.h:21,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/dispatch/copy.h:24,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/copy.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/copy.h:44,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/copy.inl:20,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/copy.h:39,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/reference_base.inl:18,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/reference_base.h:138,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/device_reference.h:27,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/device_ptr.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/device_ptr.h:181,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/iterator/detail/normal_iterator.h:29,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.h:25,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/host_vector.h:26,
                 from ./unittest/assertions.h:3,
                 from ./unittest/unittest.h:6,
                 from backend/omp/nvcc_independence.cpp:1:
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/for_each.inl:63: 
error: '__forceinline__' does not name a type
In file included from 
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/reduce.inl:31,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/reduce.h:47,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/reduce.inl:21,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/reduce.h:60,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/generic/find.inl:17,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/generic/find.h:39,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/find.h:21,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/find.inl:22,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/find.h:195,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/mismatch.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/mismatch.h:144,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/equal.inl:24,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/equal.h:131,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.inl:25,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.h:519,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/host_vector.h:26,
                 from ./unittest/assertions.h:3,
                 from ./unittest/unittest.h:6,
                 from backend/omp/nvcc_independence.cpp:1:
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/block/reduce.h:40: 
error: expected constructor, destructor, or type conversion before 'void'
In file included from 
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/reduce.h:47,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/reduce.inl:21,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/reduce.h:60,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/generic/find.inl:17,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/generic/find.h:39,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/find.h:21,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/find.inl:22,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/find.h:195,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/mismatch.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/mismatch.h:144,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/equal.inl:24,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/equal.h:131,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.inl:25,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.h:519,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/host_vector.h:26,
                 from ./unittest/assertions.h:3,
                 from ./unittest/unittest.h:6,
                 from backend/omp/nvcc_independence.cpp:1:
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/reduce.inl:78: 
error: ISO C++ forbids declaration of '__forceinline__' with no type
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/cuda/reduce.inl:79: 
error: expected ';' before 'void'
In file included from 
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/omp/reduce_intervals.h:4
9,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/reduce_intervals.inl:21,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/reduce_intervals.h:44,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/generic/reduce.inl:24,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/generic/reduce.h:45,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/reduce.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/reduce.h:60,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/generic/find.inl:17,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/generic/find.h:39,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/find.h:21,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/find.inl:22,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/find.h:195,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/mismatch.inl:23,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/mismatch.h:144,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/equal.inl:24,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/equal.h:131,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.inl:25,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/detail/vector_base.h:519,
                 from /home/jhoberock/dev/hg/thrust-tot/thrust/host_vector.h:26,
                 from ./unittest/assertions.h:3,
                 from ./unittest/unittest.h:6,
                 from backend/omp/nvcc_independence.cpp:1:
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/omp/reduce_intervals.inl
:60: error: expected ';' before end of line
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/omp/reduce_intervals.inl
:60: error: expected '}' before end of line
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/omp/reduce_intervals.inl
:60: error: expected unqualified-id before end of line
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/omp/reduce_intervals.inl
:60: error: expected '}' before end of line
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/omp/reduce_intervals.inl
:60: error: expected '}' before end of line
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/omp/reduce_intervals.inl
:60: error: expected '}' before end of line
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/omp/reduce_intervals.inl
:60: error: expected '}' before end of line
/home/jhoberock/dev/hg/thrust-tot/thrust/detail/backend/omp/reduce_intervals.inl
:60: error: expected declaration before end of line
scons: *** [backend/omp/nvcc_independence.o] Error 1
scons: building terminated because of errors.

Original issue reported on code.google.com by jaredhoberock on 14 Oct 2011 at 10:13

GoogleCodeExporter commented 9 years ago
synchronize.inl seems wrong

there's an 

#if THRUST_DEVICE_BACKEND

guard, which is meaningless.  Instead, of guarding on THRUST_DEVICE_BACKEND, we 
should probably be guarding on nvcc

Original comment by jaredhoberock on 14 Oct 2011 at 10:33

GoogleCodeExporter commented 9 years ago
launch_closure.h is also broken:

struct thread_array : public launch_bounds<>
{
// CUDA built-in variables require nvcc
#if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC
  __device__ __forceinline__ unsigned int thread_index(void) const { return threadIdx.x; }
  __device__ __forceinline__ unsigned int thread_count(void) const { return blockDim.x * gridDim.x; } 
#else
  __device__ __forceinline__ unsigned int thread_index(void) const { return 0; }
  __device__ __forceinline__ unsigned int thread_count(void) const { return 0; } 
#endif // THRUST_DEVICE_COMPILER_NVCC
};

__forceinline__ is a cuda-ism.  It should not appear in the 2nd branch.

Original comment by jaredhoberock on 14 Oct 2011 at 10:39

GoogleCodeExporter commented 9 years ago
cuda/for_each.inl uses an unguarded __forceinline__

Original comment by jaredhoberock on 14 Oct 2011 at 10:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision dd311eb0a077.

Original comment by wnbell on 18 Oct 2011 at 1:27