commit | 64a1326c7cfd66f597c290613b9ffdf8fabd4b17 | [log] [tgz] |
---|---|---|
author | Googler <noreply@google.com> | Tue Feb 04 12:15:53 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Feb 04 12:17:06 2020 -0800 |
tree | 0b2570bb893e377656a4dcb04badd9fb7b408fd2 | |
parent | aa742182a608c1e4551a5a28acb108f39b723828 [diff] |
Recognize CUDA and OpenCL file types (.cu, .cl, .inl, .cuh) and compile them with a C++ compiler. This will allow CUDA and OpenCL files to be compiled with clang, which supports both natively. Change taken from https://github.com/bazelbuild/bazel/issues/6578#issuecomment-463944092 RELNOTES: Treat .cu and .cl files as C++ source. CUDA or OpenCL are not natively supported and will require custom flags to compile with e.g. clang. PiperOrigin-RevId: 293200984
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md