take into account user defined gallium_drivers and swr_arches in Mesa easyblock#2006
take into account user defined gallium_drivers and swr_arches in Mesa easyblock#2006boegel merged 8 commits intoeasybuilders:developfrom
Conversation
|
I haven't seen this one when I opened #2007 but it is worth comparing them. What #2007 does better:
I don't think |
|
@Flamefire you are right, this easyblock would have failed with a
I tested these changes on Mesa-20.0.2-GCCcore-9.3.0.eb with the configration options listed in the description of #2006 (comment), plus the following ones:
Regarding the use of |
|
re-reviewed, tested and approved, thanks @lexming and @Flamefire! |
Current mesa easyblock fails the sanity checks if user customizes
gallium-driversorswr-archesinconfigopts.This PR fixes that issue by
configoptsgallium-driversis only set by easyblock if missing fromconfigopts(as before)swr-archesis only set by easyblock if missing fromconfigoptsandswris present ingallium-driversswr-archesand regardless of who definedswr-archesTested cases:
configopts += "-Dgallium-drivers=''"configopts += "-Dgallium-drivers='swrast'"swr-archesadded and sanity checks do not include any SWR libsconfigopts += "-Dgallium-drivers='swrast,swr'"swr-archesadded depending on CPU arch and respective SWR libs checked in sanity checksconfigopts += "-Dgallium-drivers='swrast,swr' -Dswr-arches=avx2"swr-archesis not modified andlibswrAVX2.sois added to sanity checks