diff --git a/cuda/src/Foreign/CUDA/Driver/Error.chs b/cuda/src/Foreign/CUDA/Driver/Error.chs index dd542c9..56cad99 100644 --- a/cuda/src/Foreign/CUDA/Driver/Error.chs +++ b/cuda/src/Foreign/CUDA/Driver/Error.chs @@ -64,6 +64,10 @@ import Text.Printf -- instance Describe Status where #if CUDA_VERSION >= 6000 +#if CUDA_VERSION >= 11010 + -- Prevent SEGFAULT when CUDA stub-library is being accessed. + describe StubLibrary = "stub library" +#endif describe status = case cuGetErrorString status of (Success, msg) -> msg