Skip to content

Commit a2b822c

Browse files
committed
fix hardwareAccelerationIsAvailable
1 parent 22c11ca commit a2b822c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytissueoptics/rayscattering/opencl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44

55
OPENCL_OK = True
6-
OPENCL_DISABLED = os.environ.get("PTO_DISABLE_OPENCL", "0") == "1"
76

87
if OPENCL_AVAILABLE:
98
try:
@@ -39,6 +38,7 @@ def validateOpenCL() -> bool:
3938

4039

4140
def hardwareAccelerationIsAvailable() -> bool:
41+
OPENCL_DISABLED = os.environ.get("PTO_DISABLE_OPENCL", "0") == "1"
4242
return OPENCL_AVAILABLE and OPENCL_OK and not OPENCL_DISABLED
4343

4444

0 commit comments

Comments
 (0)