diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2017-11-09 20:57:31 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2018-01-09 14:23:54 +0100 |
commit | 0ad6cb01b9176e99c3e4bb5643ac6a5dd477aad6 (patch) | |
tree | 69b27fa6406cf318d785c827e1fd05b786da2876 /include/astra/Globals.h | |
parent | de27e439a0c59fade175fba4e0b4a1e0c84b933d (diff) | |
download | astra-0ad6cb01b9176e99c3e4bb5643ac6a5dd477aad6.tar.gz astra-0ad6cb01b9176e99c3e4bb5643ac6a5dd477aad6.tar.bz2 astra-0ad6cb01b9176e99c3e4bb5643ac6a5dd477aad6.tar.xz astra-0ad6cb01b9176e99c3e4bb5643ac6a5dd477aad6.zip |
Check for CUDA support at run-time in use_cuda()
Diffstat (limited to 'include/astra/Globals.h')
-rw-r--r-- | include/astra/Globals.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/include/astra/Globals.h b/include/astra/Globals.h index 8d0d619..f7f130f 100644 --- a/include/astra/Globals.h +++ b/include/astra/Globals.h @@ -105,22 +105,6 @@ namespace astra { } //---------------------------------------------------------------------------------------- -// globals vars & functions -//namespace astra { -//#define ToolboxVersion 0.1f; - -//float32 getVersion() { return ToolboxVersion; } - -//_AstraExport bool cudaEnabled() { -//#ifdef ASTRA_CUDA -// return true; -//#else -// return false; -//#endif -//} -//} - -//---------------------------------------------------------------------------------------- // variables namespace astra { const float32 PI = 3.14159265358979323846264338328f; @@ -169,6 +153,7 @@ namespace astra { namespace astra { _AstraExport inline int getVersion() { return ASTRA_TOOLBOXVERSION; } _AstraExport inline const char* getVersionString() { return ASTRA_TOOLBOXVERSION_STRING; } +_AstraExport bool cudaAvailable(); #ifdef ASTRA_CUDA _AstraExport inline bool cudaEnabled() { return true; } #else |