Skip to content

Commit

Permalink
Do not probe GPU interfaced with PoCL
Browse files Browse the repository at this point in the history
  • Loading branch information
kif authored Aug 22, 2023
1 parent 5e33cb6 commit d521b25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/silx/opencl/atomic.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def check_atomic64(device):
return False, f"Unable to create context on {device}"
else:
queue = pyopencl.CommandQueue(ctx)
if device.platform.name == 'Portable Computing Language' and \
"GPU" in pyopencl.device_type.to_string(device.type).upper():
# this configuration is known to seg-fault
return False, "PoCL + GPU do not support atomic64"
src = """
#pragma OPENCL EXTENSION cl_khr_fp64: enable
#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
Expand Down

0 comments on commit d521b25

Please sign in to comment.