Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Compilation error with GCC 4.8.4 nvcc 7.0.27 #36

Closed
xanderdunn opened this issue Nov 4, 2015 · 2 comments
Closed

Compilation error with GCC 4.8.4 nvcc 7.0.27 #36

xanderdunn opened this issue Nov 4, 2015 · 2 comments

Comments

@xanderdunn
Copy link

When I attempt to build cub on Ubuntu 14.04 with gcc 4.8.4 and nvcc 7.0.27, I get this error:

thread_load.cuh(423): error: reinterpret_cast cannot cast away const or other type qualifiers
          detected during:
            instantiation of "T cub::ThreadLoad(T *, cub::Int2Type<MODIFIER>, cub::Int2Type<1>) [with T=const pyramid::weight_type, MODIFIER=3]"
(442): here
            instantiation of "std::iterator_traits<InputIteratorT>::value_type cub::ThreadLoad<MODIFIER,InputIteratorT>(InputIteratorT) [with MODIFIER=cub::LOAD_CS, InputIteratorT=const pyramid::weight_type *]"
kernels.cu(56): here

It looks like this is related.

@xanderdunn
Copy link
Author

It looks like this patch solves the issue: https://groups.google.com/forum/#!category-topic/cub-users/bugs-and-issues/TVdHx-jQYbU

@dumerrill
Copy link
Contributor

Fixed in v1.5

dumerrill referenced this issue Aug 11, 2017
Former-commit-id: 5360d75b9a81e0c50822014b80bf70810d2317ee
NEELMCW referenced this issue in ROCmSoftwarePlatform/cub-hip Nov 2, 2017
Former-commit-id: 5360d75b9a81e0c50822014b80bf70810d2317ee
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants