Commit 4730f339 authored by Jörg Mensmann's avatar Jörg Mensmann
Browse files

Prepare superbuild for adding NVIDIA IndeX libraries for ParaView 5.9

Things to adapt after the NVIDIA IndeX libraries have been shipped:
- Run extract-index.sh and update MD5 checksums to those of the generated files.
- Update the date in "nvidia-index-libs-5.9.00000000".
- Move DEFAULT from 2.4 to 5.9.

This commit also adds POWER9 (ppc64le) libraries.
parent 8fbd03b9
......@@ -26,22 +26,39 @@ readonly dirname="$( basename "$tarball" ".tgz" )"
readonly date="$( date "+%Y%m%d" )"
tar xf "$tarball"
chmod -R u+rw "$dirname"
cd "$dirname"
readonly dirprefix="nvidia-index-libs-$version.$date$count_suffix"
readonly linux_dir="$dirprefix-linux"
readonly windows_dir="$dirprefix-windows-x64"
mkdir "$linux_dir" "$windows_dir"
for arch in linux-x86-64 linux-ppc64le nt-x86-64; do
case $arch in
linux-x86-64)
dir="$dirprefix-linux"
;;
linux-ppc64le)
if [ ! -d "$arch" ]; then
# This architecure is optional, ignore if it's missing from the tarball
continue
fi
dir="$dirprefix-linux-ppc64le"
;;
nt-x86-64)
dir="$dirprefix-windows-x64"
;;
*)
echo "Unsupported arch '$arch'"
exit 1
;;
esac
mv "linux-x86-64/lib" "$linux_dir/"
mv "nt-x86-64/lib" "$windows_dir/"
mkdir "$dir"
cp EULA.pdf license.txt README.txt "$linux_dir/"
cp EULA.pdf license.txt README.txt "$windows_dir/"
mv "$arch/lib" "$dir/"
cp EULA.pdf license.txt README.txt "$dir/"
chmod -R a+rX "$linux_dir" "$windows_dir"
tar cjf "../$linux_dir.tar.bz2" "$linux_dir"
tar cjf "../$windows_dir.tar.bz2" "$windows_dir"
chmod -R a+rX "$dir"
tar cjf "../$dir.tar.bz2" "$dir"
done
rm -rf "$dirname"
......@@ -90,6 +90,8 @@ if (nvidiaindex_enabled)
list(APPEND nvidiaindex_libraries nvrtc-builtins64_101)
elseif (nvidiaindex_SOURCE_SELECTION STREQUAL "2.4")
list(APPEND nvidiaindex_libraries nvrtc-builtins64_102)
elseif (nvidiaindex_SOURCE_SELECTION STREQUAL "5.9")
list(APPEND nvidiaindex_libraries nvrtc-builtins64_102)
else ()
message(FATAL_ERROR
"Unknown nvrtc-builtins64 library for ${nvidiaindex_SOURCE_SELECTION}.")
......
......@@ -154,16 +154,26 @@ if (WIN32)
set(nvidiaindex_2_2_md5 "93bb894e7951227862ea308f7d6e2e18")
set(nvidiaindex_2_3_md5 "f7374dfe3eec789b07957e4924fa029f")
set(nvidiaindex_2_4_md5 "a11b9056683c52efe9f1d706e2926235")
set(nvidiaindex_5_9_md5 "00000000000000000000000000000000")
elseif (UNIX AND NOT APPLE)
set(nvidiaindex_platform "linux")
set(nvidiaindex_2_1_md5 "9fd5af702af6a6a6f2aba3a960703fb3")
set(nvidiaindex_2_2_md5 "b97518f8b5d05497455e90ba5a0712f1")
set(nvidiaindex_2_3_md5 "9c57d22f065f2ac7c978e6e6e06ebb69")
set(nvidiaindex_2_4_md5 "39bb55a5bb5f8ba1e8f44fa68dc703d3")
if (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "ppc64le")
set(nvidiaindex_platform "linux-ppc64le")
set(nvidiaindex_5_9_md5 "00000000000000000000000000000000")
else ()
set(nvidiaindex_platform "linux")
set(nvidiaindex_2_1_md5 "9fd5af702af6a6a6f2aba3a960703fb3")
set(nvidiaindex_2_2_md5 "b97518f8b5d05497455e90ba5a0712f1")
set(nvidiaindex_2_3_md5 "9c57d22f065f2ac7c978e6e6e06ebb69")
set(nvidiaindex_2_4_md5 "39bb55a5bb5f8ba1e8f44fa68dc703d3")
set(nvidiaindex_5_9_md5 "00000000000000000000000000000000")
endif ()
endif ()
superbuild_set_selectable_source(nvidiaindex
# XXX(index): Adding a new version? The Windows bundle script needs to know
# too (nvrtc-builtins).
SELECT 5.9
URL "http://www.paraview.org/files/dependencies/nvidia-index-libs-5.9.00000000-${nvidiaindex_platform}.tar.bz2"
URL_MD5 "${nvidiaindex_5_9_md5}"
SELECT 2.4 DEFAULT
URL "http://www.paraview.org/files/dependencies/nvidia-index-libs-2.4.20200424-${nvidiaindex_platform}.tar.bz2"
URL_MD5 "${nvidiaindex_2_4_md5}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment