-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failing tests and enable testing in Travis
Since we build with CL_HPP_MINIMUM_OPENCL_VERSION defined to 100, the bindings are querying the platform to decide whether to use clCreateCommandQueue or clCreateCommandQueueWithProperties. We thus need to make the stub function for clGetPlatformInfo report 2.0 when building with CL_HPP_TARGET_OPENCL_VERSION >= 200 to mirror the queue creation function check. Also allow calls to clCreateContextFromType with no properties on Apple platforms to mirror the logic in the bindings. Contributes to #62. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 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 |
---|---|---|
|
@@ -24,3 +24,4 @@ script: | |
-DOPENCL_INCLUDE_DIR=${TOP}/OpenCL-Headers | ||
.. | ||
- make -j2 | ||
- ctest |
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