Skip to content
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

define M_PI #1

Open
rogerallen opened this issue Nov 19, 2018 · 1 comment
Open

define M_PI #1

rogerallen opened this issue Nov 19, 2018 · 1 comment

Comments

@rogerallen
Copy link
Owner

From CUDA Education on the blog forum:

One last thing in regards to the code. On the later chapters, the CUDA code uses M_PI constant in the camera.h code. Please add the following snippet before the camera.h include so there are no build-time errors:

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
rogerallen added a commit that referenced this issue Oct 12, 2020
@rogerallen
Copy link
Owner Author

Resolved in the ch12_where_next_cuda branch. Leaving open as this is not fixed in all branches.

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

No branches or pull requests

1 participant