mirror of
https://github.com/CNugteren/CLBlast.git
synced 2024-07-02 20:36:58 +02:00
Merge pull request #295 from CNugteren/CLBlast-292-no-cl-program-release-windows
Disabled calls to clReleaseProgram under Windows
This commit is contained in:
commit
43e3f27254
|
@ -1,4 +1,7 @@
|
|||
|
||||
Development (next version)
|
||||
- Fixed an access violation under Windows upon releasing the OpenCL program when the driver is already unloaded
|
||||
|
||||
Version 1.4.0
|
||||
- Added Python interface to CLBlast 'PyCLBlast'
|
||||
- Added CLBlast to Ubuntu PPA and macOS Homebrew package managers
|
||||
|
|
|
@ -463,7 +463,9 @@ class Program {
|
|||
|
||||
// Clean-up
|
||||
~Program() {
|
||||
if (program_) { CheckErrorDtor(clReleaseProgram(program_)); }
|
||||
#ifndef _MSC_VER // causes an access violation under Windows when the driver is already unloaded
|
||||
if (program_) { CheckErrorDtor(clReleaseProgram(program_)); }
|
||||
#endif
|
||||
}
|
||||
|
||||
// Compiles the device program and checks whether or not there are any warnings/errors
|
||||
|
|
Loading…
Reference in a new issue