Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CL_USE_SHIPPED_EXT Switch in setup.py to use src/c_wrapper/clin…
…fo_ext.h instead of CL/cl_ext.h.
- Loading branch information
1 parent
405fb44
commit 8758099
Showing
3 changed files
with
34 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef _PYOPENCL_EXT_H | ||
#define _PYOPENCL_EXT_H | ||
|
||
#ifdef PYOPENCL_USE_SHIPPED_EXT | ||
|
||
#include "clinfo_ext.h" | ||
|
||
#else | ||
|
||
#ifdef __APPLE__ | ||
|
||
#include <OpenCL/opencl.h> | ||
|
||
#else | ||
|
||
#include <CL/cl.h> | ||
#include <CL/cl_ext.h> | ||
|
||
#endif | ||
|
||
#endif | ||
|
||
#endif | ||
|
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