The autopkgtest for this package have been failing regularly:
https://autopkgtest.ubuntu.com/packages/libthrust/kinetic/amd64
I tried running them on an m1.large unit but they also failed but it was due to a lack of space:
...
autopkgtest [18:31:55]: test compile_testsuite_TBB_CUDA_C++17_g++-10: debian/tests/upstream-testsuite TBB/CUDA 17 g++-10
autopkgtest [18:31:55]: test compile_testsuite_TBB_CUDA_C++17_g++-10: [-----------------------
+ cmake -S . -B /tmp/autopkgtest.GahqZ1/autopkgtest_tmp -DCMAKE_CXX_COMPILER=g++-10 -DTHRUST_ENABLE_MULTICONFIG=ON -DTHRUST_MULTICONFIG_ENABLE_DIALECT_CPP11=OFF -DTHRUST_MULTICONFIG_ENABLE_DIALECT_CPP14=OFF -DTHRUST_MULTICONFIG_ENABLE_DIALECT_CPP17=ON -DTHRUST_MULTICONFIG_ENABLE_SYSTEM_CPP=OFF -DTHRUST_MULTICONFIG_ENABLE_SYSTEM_CUDA=ON -DTHRUST_MULTICONFIG_ENABLE_SYSTEM_TBB=ON -DTHRUST_MULTICONFIG_ENABLE_SYSTEM_OMP=OFF -DTHRUST_MULTICONFIG_WORKLOAD=LARGE -DTHRUST_HOST_SYSTEM_OPTIONS=TBB -DTHRUST_DEVICE_SYSTEM_OPTIONS=CUDA -D_THRUST_CMAKE_DIR=/usr/share/cmake/thrust -Wno-dev
-- The CXX compiler identification is GNU 10.3.0
...
[ 1%] Built target thrust.tbb.cuda.cpp17.test.framework
[ 1%] Building CUDA object examples/CMakeFiles/thrust.tbb.cuda.cpp17.example.constant_iterator.dir/constant_iterator.cu.o
/usr/include/cub/util_debug.cuh(94): catastrophic error: error while writing generated C file: No space left on device
1 catastrophic error detected in the compilation of "/tmp/autopkgtest.GahqZ1/build.ZfF/src/examples/constant_iterator.cu".
Compilation terminated.
make[2]: *** [examples/CMakeFiles/thrust.tbb.cuda.cpp17.example.constant_iterator.dir/build.make:76: examples/CMakeFiles/thrust.tbb.cuda.cpp17.example.constant_iterator.dir/constant_iterator.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:14985: examples/CMakeFiles/thrust.tbb.cuda.cpp17.example.constant_iterator.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 1%] Building CUDA object CMakeFiles/thrust.tbb.cuda.cpp17.headers.dir/headers/thrust.tbb.cuda.cpp17/async/for_each.h.cu.o
/tmp/autopkgtest.GahqZ1/build.ZfF/src/thrust/system/cuda/detail/sort.h(332): catastrophic error: error while writing generated C++ file: No space left on device
1 catastrophic error detected in the compilation of "/tmp/autopkgtest.GahqZ1/build.ZfF/src/examples/bounding_box.cu".
Compilation terminated.
make[2]: *** [examples/CMakeFiles/thrust.tbb.cuda.cpp17.example.bounding_box.dir/build.make:76: examples/CMakeFiles/thrust.tbb.cuda.cpp17.example.bounding_box.dir/bounding_box.cu.o] Error 4
make[1]: *** [CMakeFiles/Makefile2:14881: examples/CMakeFiles/thrust.tbb.cuda.cpp17.example.bounding_box.dir/all] Error 2
[ 1%] Building CUDA object CMakeFiles/thrust.tbb.cuda.cpp17.headers.dir/headers/thrust.tbb.cuda.cpp17/async/reduce.h.cu.o
<built-in>: fatal error: when writing output to /tmp/tmpxft_00001527_00000000-30_for_each.h.compute_75.cpp1.ii: Invalid argument
compilation terminated.
make[2]: *** [CMakeFiles/thrust.tbb.cuda.cpp17.headers.dir/build.make:146: CMakeFiles/thrust.tbb.cuda.cpp17.headers.dir/headers/thrust.tbb.cuda.cpp17/async/for_each.h.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1264: CMakeFiles/thrust.tbb.cuda.cpp17.headers.dir/all] Error 2
[ 2%] Linking CUDA executable ../bin/thrust.tbb.cuda.cpp17.example.bucket_sort2d
[ 2%] Built target thrust.tbb.cuda.cpp17.example.bucket_sort2d
make: *** [Makefile:146: all] Error 2
autopkgtest [18:36:17]: test compile_testsuite_TBB_CUDA_C++17_g++-10: -----------------------]
autopkgtest [18:36:18]: test compile_testsuite_TBB_CUDA_C++17_g++-10: - - - - - - - - - - results - - - - - - - - - -
compile_testsuite_TBB_CUDA_C++17_g++-10 FLAKY non-zero exit status 2
autopkgtest [18:36:19]: @@@@@@@@@@@@@@@@@@@@ summary
cmake_find_package_Thrust PASS (superficial)
run_testsuite_CPP_C++17_g++-12 PASS (superficial)
run_testsuite_CPP_C++17_g++-11 PASS (superficial)
run_testsuite_CPP_C++17_g++-10 PASS (superficial)
run_testsuite_CPP_C++14 PASS (superficial)
run_testsuite_TBB_C++17 FLAKY non-zero exit status 2
compile_testsuite_CPP_CUDA_C++17_cuda-g++ FLAKY non-zero exit status 2
compile_testsuite_TBB_CUDA_C++17_cuda-g++ FLAKY non-zero exit status 2
compile_testsuite_CPP_CUDA_C++17_g++-11 FLAKY non-zero exit status 2
compile_testsuite_TBB_CUDA_C++17_g++-11 FLAKY non-zero exit status 2
compile_testsuite_CPP_CUDA_C++17_g++-10 FLAKY non-zero exit status 2
compile_testsuite_TBB_CUDA_C++17_g++-10 FLAKY non-zero exit status 2