At first I tried to do it myself, but stopped when I realized somethings depended on tensorflow/core and wasn't as straightforward as I would of liked.
I did find
https://github.com/biolee/bazel_rule_cuda which seems like an attempt at that, but I ran into some issues.
Any thoughts on this? I would even *possibly* be willing to dedicate some time to make a canonical supported solution for nvidia/cuda compiling.
I also think there are 2 different issues. 1 is using the cuda libraries. 2. Is the toolchain for compiliation.
Thanks!
I ran into the same issue! In my project, it would be as simple as running "nvcc" instead of "g++", and I already spent a few hours trying to understand how crosstool works.
Is there any easier way to do this? (Easy as in just adding a flag to the 'bazel' command or adding a line to my BUILD file or .bazelrc file.)
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/66069d60-28cb-4c96-b7b0-b6ca21ee3064%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/43d9a9f2-1212-47b7-88aa-453193ad8b21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So if it's not as simple as switching nvcc for g++, then you have multiple options:
* create a wrapper script that will remove unsupported flags. This is hackiest but also simplest solution.* write your own crosstool. This is not fun but is actually doable. In ~ 2 weeks I'll update the wiki page (https://github.com/bazelbuild/bazel/wiki/Building-with-a-custom-toolchain) with more up to date and more precise instructions. Then the task should be simpler.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/59d1aba7-2375-4b15-b84a-bc12d64fe744%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/59d1aba7-2375-4b15-b84a-bc12d64fe744%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFuL9GnZae_j_b-h5bDHMnduLBTRePqwn%3D61aJgQcaD87W0gew%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/59d1aba7-2375-4b15-b84a-bc12d64fe744%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFuL9GnZae_j_b-h5bDHMnduLBTRePqwn%3D61aJgQcaD87W0gew%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/59d1aba7-2375-4b15-b84a-bc12d64fe744%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--Marcel Hlopko | Software Engineer | hlo...@google.com |Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany | Geschäftsführer: Geschäftsführer: Paul Manicle, Halimah DeLaine Prado | Registergericht und -nummer: Hamburg, HRB 86891
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAFuL9GnZae_j_b-h5bDHMnduLBTRePqwn%3D61aJgQcaD87W0gew%40mail.gmail.com.