Skip to content

Fix libopenjp2 issue on Summit

Elliott Slaughter requested to merge eds/openjp2 into development

This is an attempt to permanently fix the libopenjp2 issue on Summit. There are two parts:

Fix fix_lib_olcf.sh

  • 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:
    1. ssl crypto krb5 stdc++ openjp2: this configuration does not even build.
    2. stdc++ openjp2: this builds but then fails with ImportError: CuPy is not correctly installed.
    3. 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.

Aggressively clear ~/.cache/pip

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.

Merge request reports