Skip to content

Commit

Permalink
Check also for OSError in fftp.py. Should fix #21
Browse files Browse the repository at this point in the history
  • Loading branch information
vincefn committed Nov 26, 2022
1 parent fe7bafa commit 66fe944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyvkfft/fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
import pycuda.gpuarray as cua
if has_cupy:
import cupy as cp
except ImportError:
except (ImportError, OSError):
has_cupy, has_pycuda = False, False

try:
from .opencl import VkFFTApp as VkFFTApp_cl, cla, vkfft_version

has_opencl = True
except ImportError:
except (ImportError, OSError):
has_opencl = False


Expand Down

0 comments on commit 66fe944

Please sign in to comment.