diff --git a/build/build-info b/build/build-info index 7fb0bd491a..97aaba360d 100755 --- a/build/build-info +++ b/build/build-info @@ -20,13 +20,13 @@ # Arguments: # version - The current version of the project # git_path - The path to the repository -# library_path - The path to the libcudf library +# libcudf_path - The path to the libcudf library set -e echo_build_properties() { version=$1 git_path=$2 - library_path=$3 + libcudf_path=$3 shift 3 echo version=$version echo user=$USER @@ -34,7 +34,7 @@ echo_build_properties() { echo branch=$(cd "$git_path" && git rev-parse --abbrev-ref HEAD) echo date=$(date -u +%Y-%m-%dT%H:%M:%SZ) echo url=$(cd "$git_path" && git config --get remote.origin.url) - echo gpu_architectures=$(cd "$git_path" && cuobjdump "$library_path" 2>/dev/null | grep 'arch = ' | awk -F_ '{print $2}' | sort -n -u | tr '\n' ';') + echo gpu_architectures=$(cuobjdump "$libcudf_path" 2>/dev/null | grep 'arch = ' | awk -F_ '{print $2}' | sort -n -u | tr '\n' ';') for arg in "$@"; do echo $arg done