# Comprehensive list of functions (maths, etc) available in CUDA.jl

**URL:** <https://discourse.julialang.org/t/comprehensive-list-of-functions-maths-etc-available-in-cuda-jl/88459>\
**Category:** GPU\
**Tags:** documentation, cuda\
**Created:** [October 8, 2022, 6:17pm UTC](https://discourse.julialang.org/t/comprehensive-list-of-functions-maths-etc-available-in-cuda-jl/88459 "2022-10-08T18:17:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![taxodium](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@taxodium](https://discourse.julialang.org/u/taxodium)\
**Post date:** [October 8, 2022, 6:17pm UTC](https://discourse.julialang.org/t/comprehensive-list-of-functions-maths-etc-available-in-cuda-jl/88459/1 "2022-10-08T18:17:34Z")

</div>

Hi,  
After a bit of search, I haven’t been able to find a complete list of functions (particularly, maths functions) natively implemented in CUDA.jl. Sure, obvious ones like `cos, sin, sqrt, exp` are there, but the only answers I could find here and on the internet are old and often refer to outdated packages prior to CUDA.jl.  
Nor have I found the answer in the CUDA.jl docs.

Have I missed something?  
Thanks

---

<div class="post-metadata">

**Author:** ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Post date:** [October 9, 2022, 10:45am UTC](https://discourse.julialang.org/t/comprehensive-list-of-functions-maths-etc-available-in-cuda-jl/88459/2 "2022-10-09T10:45:47Z")

</div>

That info is not in the docs directly.

> For a list of available [math] functions, look at  
> `CUDA.jl/src/device/intrinsics/math.jl`

CUDA.jl: exported math functions (incomplete)

isinf, isnan, isfinite,  
signbit, copysign, ldexp, max, min  
+, -, \*, /, ^  
round, ceil, floor  
abs, abs2, mod, rem, sqrt, hypot, fma  
exp, exp2, exp10, expm1  
log, log10, log1p  
sin, cos, tan, asin, acos, atan,  
sinpi, cospi, sincos, sincospi,  
sinh, cosh, tanh, asinh, acosh, atanh  
angle, erf, loggama, normcdf, normcdfinv

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [October 10, 2022, 10:56am UTC](https://discourse.julialang.org/t/comprehensive-list-of-functions-maths-etc-available-in-cuda-jl/88459/3 "2022-10-10T10:56:59Z")

</div>

Nowadays it’s not necessary to call these with the CUDA module prefix though, just try and use the Base functionality and see if it works. If it doesn’t, consider looking into why it doesn’t work, or filing an issue on the CUDA.jl repository.

---

<div class="post-metadata">

**Author:** ![JeffreySarnoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeffreysarnoff/32/1980_2.png) [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Post date:** [October 10, 2022, 11:58am UTC](https://discourse.julialang.org/t/comprehensive-list-of-functions-maths-etc-available-in-cuda-jl/88459/4 "2022-10-10T11:58:35Z")

</div>

that is advancement!
