Fix libopenjp2 issue on Summit
This is an attempt to permanently fix the libopenjp2
issue on Summit. There are two parts:
fix_lib_olcf.sh
Fix - The script was not properly applying the blacklist. As a result, all libraries were being overwritten with their system equivalents, regardless of the library name.
- With the blacklist properly enforced, the build breaks. I tested three configurations:
-
ssl crypto krb5 stdc++ openjp2
: this configuration does not even build. -
stdc++ openjp2
: this builds but then fails withImportError: CuPy is not correctly installed.
-
openjp2
: this configuration builds and runs. (This is the version committed in this patch.)
-
On an unrelated note, the previous recommended workaround (conda install openjpeg
) was actually redundant. The library openjpeg
was always installed. It was just being overwritten in the fix_lib_olcf.sh
script due to the lack of a properly configured blacklist.
~/.cache/pip
Aggressively clear This is the more questionable part of this commit, but is helpful for ensuring that we get an absolutely clean build. Otherwise it's easy to forget and accidentally get dirty builds.