File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ include("cmake/cpm.cmake")
107107
108108CPMAddPackage (
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(
120120CPMAddPackage (
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} " )
Original file line number Diff line number Diff line change @@ -22,14 +22,9 @@ namespace viennaps {
2222
2323using 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
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments