nvcc -O3 main.cu -o reduce -arch=sm_80
In file included from /usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_namespace.cuh:41,
from /usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_arch.cuh:37,
from cub/block/specializations/../../block/../util_type.cuh:49,
from cub/block/specializations/../../block/../util_ptx.cuh:37,
from cub/block/specializations/../../block/block_exchange.cuh:37,
from cub/block/specializations/../../block/block_radix_sort.cuh:37,
from cub/block/specializations/block_histogram_sort.cuh:36,
from cub/block/block_histogram.cuh:36,
from cub/cub.cuh:40,
from main.cu:33:
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/version.cuh:46: warning: "CUB_VERSION" redefined
46 | #define CUB_VERSION 200001
|
In file included from cub/util_namespace.cuh:41,
from cub/util_arch.cuh:37,
from cub/config.cuh:35,
from cub/cub.cuh:37,
from main.cu:33:
cub/version.cuh:46: note: this is the location of the previous definition
46 | #define CUB_VERSION 101600
|
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_macro.cuh(60): error: function template "cub::min" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_macro.cuh(68): error: function template "cub::max" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_arch.cuh(141): error: class template "cub::RegBoundScaling" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_arch.cuh(154): error: class template "cub::MemBoundScaling" has already been defined
cub/block/specializations/../../block/../util_debug.cuh(64): error: function "cub::Debug" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(105): error: class template "cub::If" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(122): error: class template "cub::Equals" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(141): error: class template "cub::Log2" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(150): error: class template "cub::Log2" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(163): error: class template "cub::PowerOfTwo" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(181): error: class template "cub::IsPointer" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(198): error: class template "cub::IsVolatile" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(217): error: class template "cub::RemoveQualifiers" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(232): error: invalid redeclaration of type name "cub::NullType"
cub/block/specializations/../../block/../util_type.cuh(231): here
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(249): error: class template "cub::Int2Type" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(280): error: class template "cub::FutureValue" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(299): error: class template "cub::detail::InputValue" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(338): error: class template "cub::AlignBytes" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(364): error: class "cub::AlignBytes<short4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(365): error: class "cub::AlignBytes<ushort4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(366): error: class "cub::AlignBytes<int2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(367): error: class "cub::AlignBytes<uint2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(368): error: class "cub::AlignBytes<long long>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(369): error: class "cub::AlignBytes<unsigned long long>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(370): error: class "cub::AlignBytes<float2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(371): error: class "cub::AlignBytes<double>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(376): error: class "cub::AlignBytes<long2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(377): error: class "cub::AlignBytes<ulong2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(379): error: class "cub::AlignBytes<int4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(380): error: class "cub::AlignBytes<uint4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(381): error: class "cub::AlignBytes<float4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(382): error: class "cub::AlignBytes<long4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(383): error: class "cub::AlignBytes<ulong4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(384): error: class "cub::AlignBytes<longlong2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(385): error: class "cub::AlignBytes<ulonglong2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(386): error: class "cub::AlignBytes<double2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(387): error: class "cub::AlignBytes<longlong4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(388): error: class "cub::AlignBytes<ulonglong4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(389): error: class "cub::AlignBytes<double4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(392): error: class template "cub::AlignBytes" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(393): error: class template "cub::AlignBytes" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(394): error: class template "cub::AlignBytes" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(399): error: class template "cub::UnitWord" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(447): error: class "cub::UnitWord<float2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(457): error: class "cub::UnitWord<float4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(468): error: class "cub::UnitWord<char2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(477): error: class template "cub::UnitWord" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(478): error: class template "cub::UnitWord" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(479): error: class template "cub::UnitWord" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(496): error: "MAX_VEC_ELEMENTS" has already been declared in the current scope
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(504): error: class template "cub::CubVector" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(516): error: class template "cub::CubVector" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(529): error: class template "cub::CubVector" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(543): error: class template "cub::CubVector" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: class "cub::CubVector<char, 1>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: class "cub::CubVector<char, 2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: class "cub::CubVector<char, 3>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: class "cub::CubVector<char, 4>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(640): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: class "cub::CubVector<signed char, 1>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: class "cub::CubVector<signed char, 2>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: no instance of constructor "CubVector" matches the argument list
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: class "cub::CubVector<signed char, 3>" has already been defined
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
/usr/local/cuda/bin/../targets/x86_64-linux/include/cub/util_type.cuh(641): error: argument list for class template "cub::CubVector" is missing
Error limit reached.
100 errors detected in the compilation of "main.cu".
Compilation terminated.
make: *** [Makefile:28: reduce] Error 4
I have been using the CUB v1.16.0.