Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix symbol not found for create_image_from_desc on CL 1.1
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,13 @@ | |
#define PYOPENCL_CL_CASTABLE_THIS data() | ||
#endif | ||
|
||
#define PYOPENCL_UNSUPPORTED(ROUTINE, VERSION) \ | ||
auto err = (error*)malloc(sizeof(error)); \ | ||
err->routine = strdup(#ROUTINE); \ | ||
err->msg = strdup("unsupported in " VERSION); \ | ||
err->code = CL_INVALID_VALUE \ | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
FreddieWitherden
|
||
err->other = 0; \ | ||
return err; | ||
|
||
class clerror : public std::runtime_error { | ||
private: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Seems to be a missing
;
.