question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`--config=cuda` overrides explicit options, instead of augmenting them

See original GitHub issue

Please:

  • Check for duplicate issues.
  • Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:
import jax.numpy as jnp
print(jnp.arange(10))
# [0 1 2 3 4 5 6 7 8 9]
  • If applicable, include full error messages/tracebacks.

I am trying to build cuda-enabled jaxlib on conda-forge. I am running into a problem where the --config=cuda flag replaces the custom toolchain. I understand this is outside the scope here, but getting cuda-enabled jax on conda-forge seems to be a very valuable contribution, and I hope you can help us achieve that. We do build cuda-enabled tensorflow, and we follow our method almost exactly. The option --config=cuda works fine in our tensorflow builds.

WARNING: option '--config=cuda' (source command line options) was expanded and now overrides the explicit option --crosstool_top=//bazel_toolchain:toolchain with --crosstool_top=@local_config_cuda//crosstool:toolchain

Once the above happens, the local_config_cuda parameters essentially cannot see any of the system libraries and everything breaks. I haven’t looked too deeply into this yet, so bringing it here first in case you have a quick answer/shortcut.

Corresponding PR in conda-forge: https://github.com/conda-forge/jaxlib-feedstock/pull/97

Tagging @hawkinsp who’s been involved in issues related to the builds before. Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
yashk2810commented, May 19, 2022

Another thing you can try is to add things at the end to .jax_configure.bazelrc (Make sure you are adding your custom things at the end of the file – not the python file but the .jax_configure.bazelrc file.)

1reaction
hawkinspcommented, May 19, 2022

The arguments to bazel are ordering sensitive. I’m wonder if the fix would be to reorder the arguments here: https://github.com/google/jax/blob/7d4d15e260e24c54f9fbc1685a45d910edb61e43/build/build.py#L493

so that the user-provided --bazel_options override --config=cuda (i.e., come later), rather than the other way around?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release 2.11.0 - Google Git
To explicitly enable or disable oneDNN optimizations, set the environment variable TF_ENABLE_ONEDNN_OPTS to 1 (enable) or 0 (disable) before running TensorFlow.
Read more >
Why is ML software so horrible? : r/learnmachinelearning
So manually installing cuda 10.0 should fix it. ... you can substitute that step with conda install -c conda-forge tensorflow-gpu .
Read more >
File: configdefaults.py - Debian Sources
Please use the options ' '`dnn.conv.algo_bwd_filter` and `dnn.conv.algo_bwd_data` instead.') return True # Those are the options provided by Theano to ...
Read more >
tensorflow Changelog - pyup.io
Added support for alternative checkpointing protocol which makes it ... explicitly change your optimizer to `tf.keras.optimizers.legacy.Optimizer`.
Read more >
TensorFlow For Machine Intelligence
Below is a short list of various options for deep learning: ... Instead of calling itself a “library for machine learning”, it uses...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found