Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
A temporary "ugly" work-around is to re-define "generic" before including the
thrust headers:
#define generic _thrust_generic
#include <thrust\device_ptr.h>
#undef generic
Original comment by Patricio...@gmail.com
on 22 Feb 2012 at 4:54
Another issue is the warning about the use of secure versions of the CRT
functions:
warning C4996: 'strerror': This function or variable may be unsafe. Consider
using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
See online help for details.
To prevent this:
#define generic _thrust_generic
#pragma warning(push)
#pragma warning(disable: 4996)
#include <thrust\device_ptr.h>
#pragma warning(pop)
#undef generic
Original comment by Patricio...@gmail.com
on 22 Feb 2012 at 5:10
Forwarded to https://github.com/thrust/thrust/issues/94
Original comment by jaredhoberock
on 7 May 2012 at 10:08
Original issue reported on code.google.com by
jaredhoberock
on 4 Sep 2010 at 12:20