Open mrshirts opened 2 years ago
It looks like Conda JAX is usable as is with some small tweaking: https://github.com/google/jax/issues/189. There is some odd nuance with a couple of caveates:
jaxlib==0.3.10=*cuda*
to the install (we can do that with the meta file)CONDA_OVERRIDE_CUDA="11.2"
as part of the invocation of conda install
if you dont have a GPU.@mrshirts can you make a nudge or re-trigger #402 so we can see what the errors are exactly?
Address pytest issues with flaky? (Levi?)
We do have the flaky
plugin setup to be used in one test already. I'm going to keep triggering tests locally and on my fork to see if I can figure out which tests are problematic.
For #402, that will take a couple of days, I need to revisit what is actually the right way to do this.
The specific test failure I got was:
test_mbar_solvers.py:20: PytestUnknownMarkWarning: Unknown pytest.mark.flaky - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html @pytest.mark.flaky(max_runs=2) # Uses flaky plugin for pytest
But that was running pytest v 7.1.1 locally, so I guess the issue was that I was running w/o the plugin?
The specific test failure I got was:
That's the generic error message from pytest
if you try to use a mark it doesn't recognize (or don't have the plugin to recognize). The test will run fine without the flaky
plugin, so its a relatively harmless warning. I have that one test marked flaky
because it can stochastically fail rarely. Post 4.0, it may not even be a valid test anymore since we are changing the way solvers work. For now, the GitHub Actions CI installs the plugin so it should not throw the warning in online testing.
I've had pretty good success pulling down JAX from conda-forge
, with the caveat that I haven't needed CUDA acceleration and for a brief period of time all of the builds were broken on macOS because the feedstock was more or less only maintained by automation. But it's generally available and not been a pain to install lately.
And a totally trivial suggestion, but you might want to remove devtools/conda-recipe
now that the conda builds happen in the feedstock.
Moving from the general task #255 to specific tasks