Skip to content

Commit 46cf6d9

Browse files
committed
Revert "feat: automatic fallback if runtime CUDA driver not found"
This reverts commit 0aee149.
1 parent 0aee149 commit 46cf6d9

4 files changed

Lines changed: 3 additions & 72 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ include("cmake/cpm.cmake")
107107

108108
CPMAddPackage(
109109
NAME ViennaCore
110-
VERSION 2.1.0
110+
VERSION 2.0.0
111111
GIT_REPOSITORY "https://github.com/ViennaTools/ViennaCore"
112112
EXCLUDE_FROM_ALL ${VIENNAPS_BUILD_PYTHON}
113113
OPTIONS "VIENNACORE_USE_GPU ${VIENNAPS_USE_GPU}")
@@ -120,7 +120,6 @@ CPMAddPackage(
120120
CPMAddPackage(
121121
NAME ViennaRay
122122
VERSION 4.0.0
123-
GIT_TAG cuda-dynamic-load
124123
GIT_REPOSITORY "https://github.com/ViennaTools/ViennaRay"
125124
EXCLUDE_FROM_ALL ${VIENNAPS_BUILD_PYTHON}
126125
OPTIONS "VIENNARAY_USE_GPU ${VIENNAPS_USE_GPU}")

include/viennaps/process/psProcess.hpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,9 @@ namespace viennaps {
2222

2323
using namespace viennacore;
2424

25-
inline bool gpuAvailable() {
25+
inline constexpr bool gpuAvailable() {
2626
#ifdef VIENNACORE_COMPILE_GPU
27-
auto deviceContext = DeviceContext::getContextFromRegistry();
28-
if (deviceContext)
29-
return deviceContext->foundCuda();
30-
31-
deviceContext = DeviceContext::createContext();
32-
return deviceContext != nullptr && deviceContext->foundCuda();
27+
return true;
3328
#else
3429
return false;
3530
#endif

tests/gpuBuild/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/gpuBuild/gpuBuild.cpp

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)