-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'gcc' module required by 'slurm-drmaa' results in theano BLAS warning #151
Comments
Without Python 3.9.9 | packaged by conda-forge | (main, Dec 20 2021, 02:41:03)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import theano
>>> theano.config.cxx
'/home/jc604/.conda/envs/speclet/bin/g++'
>>> theano.config.blas__ldflags
'-L/home/jc604/.conda/envs/speclet/lib -lcblas -lblas -lcblas -lblas'
>>> theano.config.gcc__cxxflags
''
>>> With Python 3.9.9 | packaged by conda-forge | (main, Dec 20 2021, 02:41:03)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import thaeano
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'thaeano'
>>> import theano
WARNING (theano.tensor.blas): Using NumPy C-API based implementation for BLAS functions.
>>> theano.config.cxx
'/n/app/gcc/6.2.0/bin/g++'
>>> theano.config.blas__ldflags
''
>>> theano.config.gcc__cxxflags
''
>>> |
For reference, Setting the flags manually removes the BLAS warning even if O2's module load gcc
MY_THEANO_FLAGS="cxx='/home/jc604/.conda/envs/speclet/bin/g++',blas__ldflags='-L/home/jc604/.conda/envs/speclet/lib -lcblas -lblas -lcblas -lblas'"
THEANO_FLAGS=$MY_THEANO_FLAGS speclet/command_line_interfaces/fit_bayesian_model_cli.py \
"hierarchical-nb" \
models/model-configs.yaml \
PYMC3_MCMC \
temp/fitting-mcmc \
--mcmc-chains 1 \
--mcmc-cores 1 \
--cache-name='test-run' (Edit: misspelled "FLAGS" in |
Solution: Add this flag to the current Steps:
|
I made a mistake: The new flags need to use the correct conda environment. Snakemake makes a new environment for the pipeline, so I cannot set it as the prefix for ❯ conda activate speclet
❯ echo $CONDA_PREFIX
/home/jc604/.conda/envs/speclet |
The
slurm-drmaa
module is required for Snakemake to use O2. Theslurm-drmaa
module requires thegcc
module. Loading thegcc
module results in the theano BLAS warning.The text was updated successfully, but these errors were encountered: