-
Notifications
You must be signed in to change notification settings - Fork 13.7k
docs: explain CUDA 11 compilation [no ci] #16824
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
Conversation
| ```C++ | ||
| // original lines | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double cospi(double x); | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float cospif(float x); | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double sinpi(double x); | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float sinpif(float x); | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x); | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x); | ||
|
|
||
| // edited lines | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double cospi(double x) noexcept (true); | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float cospif(float x) noexcept (true); | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double sinpi(double x) noexcept (true); | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float sinpif(float x) noexcept (true); | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x) noexcept (true); | ||
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x) noexcept (true); | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ```C++ | |
| // original lines | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double cospi(double x); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float cospif(float x); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double sinpi(double x); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float sinpif(float x); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x); | |
| // edited lines | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double cospi(double x) noexcept (true); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float cospif(float x) noexcept (true); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double sinpi(double x) noexcept (true); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float sinpif(float x) noexcept (true); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x) noexcept (true); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x) noexcept (true); | |
| ``` | |
| ```C++ | |
| // original lines | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double cospi(double x); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float cospif(float x); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double sinpi(double x); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float sinpif(float x); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x); | |
| // edited lines | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double cospi(double x) noexcept (true); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float cospif(float x) noexcept (true); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double sinpi(double x) noexcept (true); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float sinpif(float x) noexcept (true); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double rsqrt(double x) noexcept (true); | |
| extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ float rsqrtf(float x) noexcept (true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't show on the diff, but there are whitespaces...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I have my IDE configured to remove trailing whitespaces automatically so if it doesn't for a pre-formatted block I don't think of it :)
dc9f3fd to
18995ae
Compare
I had some technical issues when trying to compile llama.cpp for CUDA 11.7 on Manjaro, this PR adds the steps I had to take to the build documentation.