eddelbuettel / bh

R package providing Boost Header files
85 stars 33 forks source link

Add non-header only Boost libs? #51

Closed bob-carpenter closed 6 years ago

bob-carpenter commented 6 years ago

We have a package (rstan package) that currently uses BH for Boost, but is soon going to need MPI for parallelization.

Boost's MPI libraries are not header only---they require the Boost build tools and then linking.

Is there any chance these could be added to BH or should we just go ahead and add the relevant libs ourselves in the stan headers package package?

eddelbuettel commented 6 years ago

BH has always aimed for being header-only, so no to (file)system, regex, ... and other niceties.

I happen to like MPI. I would be nice to have better support, but I fear a ginormous can of worms across all three (core) platforms given that CRAN apparently cannot even sort OpenMP on macOS out reliably.

eddelbuettel commented 6 years ago

See the README.md which states clearly

Note that this can be used solely by headers-only Boost libraries. This covers most of Boost, but excludes some libraries which require linking for parts or all of their functionality.

eddelbuettel commented 6 years ago

But if there are other header-only components BH could / should have we're always open for business. Just the linking part is off-limits by choice.

bob-carpenter commented 6 years ago

Thanks for the instant response. We're targeting command-line and linux first, as I suspect you're right about the can of worms. I think everything we need that's not in BH is not header only, so we'll just roll it into our own code when we get around to integrating with R.