Open Enchufa2 opened 5 months ago
Most likely a bug in the updated configure script? Can you confirm where libtbb is installed / available on the system you're testing with?
We have:
Well, the issue is that autodetection was disabled: https://github.com/RcppCore/RcppParallel/commit/d4315220e29f3e48cdc993f9c6e6cfbc605c88a4. Do you remember the reason?
And apart from this, I think that the issue with stan-dev/rstan/issues/1041 can be solved here much easily. The issue is that this part:
~does not take into account if the system tbb is used via autodetection~. If this chunk adds the -DTBB_INTERFACE_NEW
flag in this case, then rstan and family will compile just fine if I'm not mistaken.
EDIT: Sorry, I misread that: the TBB_INC
variable is defined in the package namespace when autodetection is enabled. So it should work... The only point is to reenable autodetection.
Well, the issue is that autodetection was disabled: https://github.com/RcppCore/RcppParallel/commit/d4315220e29f3e48cdc993f9c6e6cfbc605c88a4. Do you remember the reason?
I do not -- it would've been helpful if I had actually documented why somewhere. 😞 My guess is that this was somehow CRAN-oriented; e.g. I wanted to make sure we always used the bundled TBB on CRAN, but even if that's true there's probably a better way to handle that.
I didn't detect this because I had the old workaround in place, but after #178, I suppose that 640468165c05611ba81d76b757fd3f195a93b285 broke this?