Giter Club home page Giter Club logo

Comments (6)

kpet avatar kpet commented on September 17, 2024

We should probably also provide isnan, isnormal, isfinite and isinf.

from opencl-headers.

jrprice avatar jrprice commented on September 17, 2024

+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.

kpet avatar kpet commented on September 17, 2024

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.

kpet avatar kpet commented on September 17, 2024

@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.

jrprice avatar jrprice commented on September 17, 2024

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.

kpet avatar kpet commented on September 17, 2024

Thanks! I've created #102 and #103. Closing this issue.

from opencl-headers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.