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

Add a test to check that NVCC is used for CUDA and Clang is used for pure host compilation #515

Open
andportnoy opened this issue Feb 5, 2024 · 1 comment

Comments

@andportnoy
Copy link
Contributor

XLA has tests built-in to help check that:

bazel build //build_tools/configure:assert_nvcc //build_tools/configure:assert_clang
@andportnoy
Copy link
Contributor Author

More context, from JAX docs:

While it should typically be possible to compile jaxlib from source using most modern compilers, the builds are only tested using clang. Pull requests are welcomed to improve support for different toolchains, but other compilers are not actively supported.

In the past we had issues when we accidentally used GCC to build, but thought we were using Clang.
//build_tools/configure:assert_clang tests that the compiler used to compile C++ under Bazel is Clang.

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