-
Notifications
You must be signed in to change notification settings - Fork 758
thrust 1.8.3 exclusive_scan with custom temporary allocation, no default constructor error #800
Comments
I ran into the same error while trying to compile OpenCV in combination with the CUDA 8.0 libraries. |
@bramton tried same environment as you said, still getting them same error. Using Microsoft Visual Studio Community 2015 Version 14.0.24720.00 Update 1, with thrust 1.8.3 from GitHub and copied to CUDA 8.0 include directory. VS output window shows Is that all the same with yours? |
This is the error I get when I use the thrust library provided with CUDA 8.0: What I did to get it working was the following:
|
I made a bug report at NVIDIA with this issue, this is their reply:
Could someone close this issue ? |
Thanks @Mochimazui and @bramton! We'll keep this issue open until the fix is reflected in the repository to make others aware of the problem and let them know that a solution is in progress. |
The solution is already in place. Please use "cuda-next-release" branch where the problem is fixed. The fix will also be in CUDA 8.0 GA. |
@bramton 's solution works for me. |
Thanks a lot! It works for me on ubuntu 16. |
Using VS2013 with CUDA 8.0 + thrust 1.8.3.
Same error occurs with CUDA 7.5 + thrust 1.8.3.
See code at https://gist.github.com/Mochimazui/007b243e7be16527f5d5380d596c1993.
This is a simple modification from thrust/examples/cuda/custom_temporary_allocation.cu. Just add scan.h and replace the sort function with exclusive_scan.
nvcc shows following compile error:
1>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include\thrust/detail/reference.inl(127): error : no default constructor exists for class "thrust::detail::execute_with_allocator<cached_allocator, thrust::system::cuda::detail::execute_on_stream_base>" 1>C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include\thrust/detail/reference.inl(98): error : no default constructor exists for class "thrust::detail::execute_with_allocator<cached_allocator, thrust::system::cuda::detail::execute_on_stream_base>"
The text was updated successfully, but these errors were encountered: