Skip to content
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

class (in nbodykit) compiled under wrong compiler version #7

Closed
VMBoehm opened this issue Feb 11, 2020 · 10 comments
Closed

class (in nbodykit) compiled under wrong compiler version #7

VMBoehm opened this issue Feb 11, 2020 · 10 comments
Assignees

Comments

@VMBoehm
Copy link
Owner

VMBoehm commented Feb 11, 2020

For some cosmologies, computing pklin:

rho = rho.apply(lambda k, v:(cosmo.get_pklin(k.normp(2,zeromode=1) ** 0.5,0) / pm.BoxSize.prod()) ** 0.5 * v)

runs into this error
=>spectra_pk_at_z(L:418) :error in array_interpolate_spline(psp->ln_tau, psp->ln_tau_size, psp->ln_pk, psp->ddln_pk, psp->ln_k_size, ln_tau, &last_index, output_tot, psp->ln_k_size, psp->error_message);
=>array_interpolate_spline(L:1701) : x=9.782528e+00 > x_max=9.782528e+00

which is a well known class error:
https://github.com/lesgourg/class_public/search?q=array_interpolate_spline%28&type=Issues

proposed fix: update bccp conda environment under /global/common/software/m3035/conda-activate.sh 3.7 ?

@rainwoodman
Copy link
Collaborator

Let's first try to fix class. lesgourg/class_public#309

@VMBoehm
Copy link
Owner Author

VMBoehm commented Feb 12, 2020

and the recompile N-bodykit? Let's hope they reply soon...

@VMBoehm
Copy link
Owner Author

VMBoehm commented Feb 12, 2020

have you looked into my workaround?

@rainwoodman
Copy link
Collaborator

rainwoodman commented Feb 13, 2020 via email

@rainwoodman
Copy link
Collaborator

rainwoodman commented Feb 13, 2020 via email

@rainwoodman
Copy link
Collaborator

Do you have a minimal example that reliably reproduces this with nbodykit's Cosmology object?

@rainwoodman
Copy link
Collaborator

@VMBoehm; I've added the patch to our class binding.

See if you update your classylss to the master branch the problem is gone:
(I think something like) bcast-pip https://github.com/nickhand/classylss/archive/master.zip

@VMBoehm
Copy link
Owner Author

VMBoehm commented Mar 3, 2020

seems to work in my test run that failed before. I'll start a bigger run today and close this if it works.

@VMBoehm
Copy link
Owner Author

VMBoehm commented Mar 4, 2020

successfully created 300 maps at 300 different cosmologies!

@VMBoehm VMBoehm closed this as completed Mar 4, 2020
@rainwoodman
Copy link
Collaborator

rainwoodman commented Mar 5, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants