Comments (6)
We should probably also provide isnan
, isnormal
, isfinite
and isinf
.
from opencl-headers.
+1 to this, and I can do the work to get the initial conversion functions into the headers.
The functions in the CTS make extensive use of the MAKE_HEX_FLOAT
macros. They also use fabsf
. My current thinking is to rework them a little to avoid depending on these two things (easy enough to perform the comparisons as hex integers). Does this sound OK, or is there a desire to keep the functions exactly as they are in the CTS?
from opencl-headers.
That's great! Sounds good to me. I don't think we need/want to keep the functions exactly as they are in the CTS. I thought that we'd actually change the CTS to use the functions provided by the headers. The overall thinking was:
- starting from the functions in the CTS guarantees that the behaviour of the headers functions match what implementations do today
- using the functions provided in the headers in the CTS guarantees that applications use what implementations are verified with so at least the behaviour is consistent
- the last step would be to add unit tests for the headers functions vs. the spec and deal with the outcome of that.
from opencl-headers.
@jrprice #60 has done what I originally had in mind here. I've created KhronosGroup/OpenCL-CTS#870 so we don't forget to transition the CTS to these routines. Since you added tests as well under #60 I'm not sure there's anything left to do here other than creating new issues to cover making conversions automatic in C++ programs and consider adding all the is*
routines. Did you have something else in mind?
from opencl-headers.
Did you have something else in mind?
No, the C++ sugar and is*
were the only reasons I didn't close this issue.
from opencl-headers.
Thanks! I've created #102 and #103. Closing this issue.
from opencl-headers.
Related Issues (20)
- #include <libclew/ocl_init.h> HOT 1
- Why cannot find <CL\opencl.h> when using Android NDK Building? HOT 1
- Generate tests that use all definitions provided by the headers HOT 1
- missing POCL vendor ID
- Added this repo as a submodule HOT 2
- Increment CMake Version Number HOT 1
- re-enable testing in test_half
- How to install OpenCL SDK for FreeBSD?
- Build warning/note
- install *.pc below CMAKE_INSTALL_DATADIR HOT 3
- clEnqueueWriteHostPipeINTEL XML discrepancy HOT 3
- XML and header discrepancy for clSetMemObjectDestructorAPPLE HOT 1
- Random value when use pragma unroll
- Guard definitions for provisional extensions with a dedicated opt-in macro
- Provide version macros for individual extensions HOT 8
- update copyright dates to 2024
- fix CI failures HOT 5
- OpenCL-HPP broken after the merge of #251 HOT 1
- Problem with x264 OpenCL
- CL/cl_version.h: No such file or directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencl-headers.