Skip to content

[CUDA] math functions support list #1461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jinz2014 opened this issue Apr 2, 2020 · 6 comments
Closed

[CUDA] math functions support list #1461

jinz2014 opened this issue Apr 2, 2020 · 6 comments
Assignees
Labels
cuda CUDA back-end

Comments

@jinz2014
Copy link
Contributor

jinz2014 commented Apr 2, 2020

I think a table of math functions is needed for people to know which math functions are supported...

https://github.com/codeplaysoftware/computecpp-sdk/blob/master/samples/monte-carlo-pi.cpp
~/computecpp-sdk/samples$ clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda-sycldevice monte-carlo-pi.cpp
ptxas fatal : Unresolved extern function '_Z18__spirv_ocl_lengthDv2_f'

Add another one
ptxas fatal : Unresolved extern function '_Z15__spirv_ocl_tanf'

@alexbatashev alexbatashev added the cuda CUDA back-end label Apr 3, 2020
@alexbatashev
Copy link
Contributor

@Ruyk
Copy link
Contributor

Ruyk commented Apr 14, 2020

Not yet, we are working on the full list, @Naghasan has the details

@Ruyk
Copy link
Contributor

Ruyk commented Jun 8, 2020

The complete working set of builtins required for SYCL 1.2.1 will be available in the next few weeks. Patches are being reviewed, check the libclc label (https://github.com/intel/llvm/pulls?q=is%3Apr+label%3Alibclc+)

@bader
Copy link
Contributor

bader commented Jul 3, 2020

@jinz2014, most of the built-ins are implemented. Can we close this issue?

@jinz2014
Copy link
Contributor Author

jinz2014 commented Jul 3, 2020

Though I am not a developer, I am interested to know where I can find the implementations. Thank you for pointing that out.

@jinz2014 jinz2014 closed this as completed Jul 3, 2020
@bader
Copy link
Contributor

bader commented Jul 3, 2020

These functions are implemented in libclc library.
Particularly _Z15__spirv_ocl_tanf definition should be added by #1990 and _Z18__spirv_ocl_lengthDv2_f by #1832.

You can find related PRs using the link provided by @Ruyk above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA back-end
Projects
None yet
Development

No branches or pull requests

4 participants