I would like to detect whether a .cu file is compiled with C++11 support enabled. At the moment i have the following:
#if CUDART_VERSION < 7050
#define C11SUPPORTED 0
#else
#define C11SUPPORTED 1
#endif
However this is not working because even though C++11 is supported, it is not enabled unless -std=c++11 flag is passed. Is there perhaps something else defined when -std=c++11 flag is passed?
Aucun commentaire:
Enregistrer un commentaire