electronic-structure / SIRIUS

Domain specific library for electronic structure calculations
BSD 3-Clause "New" or "Revised" License
125 stars 40 forks source link

Pin DLA-Future version in Spack package with some fixes and improvements #923

Closed RMeli closed 10 months ago

RMeli commented 10 months ago

Improvements

Fixes:

pika+cuda sets INTERFACE_POSITION_INDEPENDENT_CODE=ON, therefore it is incompatible with the hard-coded PISITION_INDEPENEDENT_CODE=OFF in some of the apps/utils. I removed this constraint, but I'm not sure why it was there in the first place.

mtaillefumier commented 10 months ago

I would put POSITION_INDEPENDENT_CODE=ON. If applications still rely on POSITION_INDEPENDENT_CODE=OFF then they should be fixed.... There is no penalty in using POSITION_INDEPENDENT_CODE=ON by default with both static (.a) and dynamic libraries (.so).

RMeli commented 10 months ago

I would put POSITION_INDEPENDENT_CODE=ON

@mtaillefumier, I think this is indeed the case (implicitly)? https://github.com/electronic-structure/SIRIUS/blob/76cc9ab0e8f9f108d8a8966cd8a4e3cf020f468a/CMakeLists.txt#L57

mtaillefumier commented 10 months ago

then all good.