Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parRSB/gslib fail to update properly #825

Open
dshaver-ANL opened this issue Mar 7, 2024 · 0 comments
Open

parRSB/gslib fail to update properly #825

dshaver-ANL opened this issue Mar 7, 2024 · 0 comments

Comments

@dshaver-ANL
Copy link
Contributor

$makenek clean doesn't delete the unpacked versions of parRSB and gslib. When parRSB, for example, is updated, the user needs to manually delete the Nek5000/3rd_party/parRSB/parRSB directory for the new version to be downloaded and installed. The install script only checks for the existence of the tool subdirectory when deciding if it needs to download a new tarball, not whether it is the correct version. We could tag the subdirectory with the version number to make sure it's always consistent with the version of Nek. Something like:

#!/bin/bash
set -e

VER=0.9.2

if [ "$1" == "clean" ]; then
  rm -rf parRSB_v$VER/build lib include 2>/dev/null
  exit 0
fi

if [ -f ./lib/libparRSB.a ]; then
  exit 0
fi

if [ ! -d ./parRSB_v$VER ]; then
  rm -rf ./parRSB* 2>/dev/null #delete any version that might already exist
  wget --no-check-certificate -O v$VER.tar.gz https://github.com/Nek5000/parRSB/archive/v$VER.tar.gz
  mkdir parRSB_v$VER
  tar -zxvf v$VER.tar.gz -C ./parRSB_v$VER --strip-components=1
fi

cd parRSB_v$VER
set -x
make lib install $PARRSB_OPT
set +x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant