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

Make GSL and OpenMP optional #10

Open
slinderman opened this issue Mar 27, 2017 · 1 comment
Open

Make GSL and OpenMP optional #10

slinderman opened this issue Mar 27, 2017 · 1 comment

Comments

@slinderman
Copy link
Owner

A lot of people are having trouble installing due to the dependencies on GSL (via gslrandom package) and OpenMP. I think we can make both of these optional, but the user will suffer a serious performance hit.

@slinderman
Copy link
Owner Author

slinderman commented Mar 28, 2017

I've updated the code with the following changes:

  1. gslrandom is an optional dependency. If it's installed, pyhawkes will automatically use it for resampling the discrete parent variables. If it's not installed, pyhawkes will default to a slow python loop.

  2. OpenMP is optional. If you set USE_OPENMP=True before installing, pyhawkes will compile with OpenMP support. Otherwise, pyhawkes will default to a single threaded version. This part only affects the parent resampling for continuous time models; the discrete time models use gslrandom for parallel resampling (see above).

  3. pip installation should work for most users, though it will default to the slow, single-threaded version.

See e592afa and fd610a1.

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

1 participant