Yanhao Wang

Results 10 comments of Yanhao Wang

> You need to configure the cuda toolchain manually to achieve it. Could you please point out how to do it manually? I noticed that `host_compiler` is from `cc_toolchain.compiler_executable` [1],...

> Out of curiosity, why do you want to use ccache with bazel? We're migrating from cmake to bazel, and we use ccache in cmake setup. Besides local cache, we...

> The toolchain are instantiated from https://github.com/bazel-contrib/rules_cuda/tree/main/cuda/templates I think you're talking about cuda toolchains. The host_compiler I mentioned above is from cc toolchain.

> BTW, bazel also has local cache Maybe I didn't say it clearly. We want to use ccache secondary cache, and we don't want to spend effort setting up bazel...

For any reason you want to use a different host_compiler, here's what I did in my project. 1. Create a patch of rules_cuda, setting host_compiler[1] to a path you want,...

> @wyhao31 I think you can avoid a patch by `bazel build --features=-host_compiler_path ...`, this will (should, I am not quite sure =) ) disable the `--ccbin ` to be...

@YJDoc2 Can you please add the label to this PR? There's a check failure due to missing label.

@gokulmaxi Are you still working on this issue? I'm also interested in fixing it. Since you haven't sent out PR for more than 2 weeks, I'll just move forward to...