📅 2015-Dec-08 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cuda, error, extrema, thrust ⬩ 📚 Archive
I was compiling some old CUDA code with a recent version of the CUDA SDK. I got these errors on Thrust methods:
error: namespace thrust has no member max_element
error: namespace thrust has no member min_element
In recent versions of CUDA SDK, these Thrust methods have been moved to the extrema.h
header file. These errors will go away if you include the thrust/extrema.h
header file.
Tried with: CUDA SDK 7.5 and Ubuntu 14.04