Closed pxLi closed 1 week ago
build
build
build
updated,
cudart
instead cuda
amd64 list,
[2024-06-27T01:36:14.229Z] ++ unzip -j target/spark-rapids-jni-24.08.0-SNAPSHOT-cuda11.jar '*64/Linux/*.so' -d /tmp/jni-20240627013613
[2024-06-27T01:36:14.229Z] Archive: target/spark-rapids-jni-24.08.0-SNAPSHOT-cuda11.jar
[2024-06-27T01:36:20.806Z] inflating: /tmp/jni-20240627013613/libcudf.so
[2024-06-27T01:36:20.806Z] inflating: /tmp/jni-20240627013613/libcudfjni.so
[2024-06-27T01:36:20.806Z] inflating: /tmp/jni-20240627013613/libcufilejni.so
[2024-06-27T01:36:21.078Z] inflating: /tmp/jni-20240627013613/libprofilerjni.so
[2024-06-27T01:36:21.078Z] inflating: /tmp/jni-20240627013613/libnvcomp.so
[2024-06-27T01:36:21.348Z] inflating: /tmp/jni-20240627013613/libnvcomp_gdeflate.so
[2024-06-27T01:36:21.616Z] inflating: /tmp/jni-20240627013613/libnvcomp_bitcomp.so
arm64 list,
[2024-06-27T01:28:17.998Z] ++ unzip -j target/spark-rapids-jni-24.08.0-SNAPSHOT-cuda12-arm64.jar '*64/Linux/*.so' -d /tmp/jni-20240627012817
[2024-06-27T01:28:17.998Z] Archive: target/spark-rapids-jni-24.08.0-SNAPSHOT-cuda12-arm64.jar
[2024-06-27T01:28:17.998Z] inflating: /tmp/jni-20240627012817/libcudfjni.so
[2024-06-27T01:28:24.552Z] inflating: /tmp/jni-20240627012817/libcudf.so
[2024-06-27T01:28:24.552Z] inflating: /tmp/jni-20240627012817/libnvcomp_bitcomp.so
[2024-06-27T01:28:24.552Z] inflating: /tmp/jni-20240627012817/libnvcomp_gdeflate.so
[2024-06-27T01:28:24.809Z] inflating: /tmp/jni-20240627012817/libnvcomp.so
and check all so files,
[2024-06-27T01:36:21.616Z] ++ find /tmp/jni-20240627013613 -type f -name '*.so'
[2024-06-27T01:36:21.616Z] ++ read -r so_file
[2024-06-27T01:36:21.616Z] ++ grep -qi cudart
[2024-06-27T01:36:21.616Z] ++ grep NEEDED
[2024-06-27T01:36:21.616Z] ++ objdump -p /tmp/jni-20240627013613/libcudf.so
[2024-06-27T01:36:21.880Z] ++ echo 'No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libcudf.so'
[2024-06-27T01:36:21.880Z] No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libcudf.so
[2024-06-27T01:36:21.880Z] ++ read -r so_file
[2024-06-27T01:36:21.880Z] ++ grep -qi cudart
[2024-06-27T01:36:21.880Z] ++ objdump -p /tmp/jni-20240627013613/libcufilejni.so
[2024-06-27T01:36:21.880Z] ++ grep NEEDED
[2024-06-27T01:36:21.880Z] ++ echo 'No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libcufilejni.so'
[2024-06-27T01:36:21.880Z] No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libcufilejni.so
[2024-06-27T01:36:21.880Z] ++ read -r so_file
[2024-06-27T01:36:21.880Z] ++ grep -qi cudart
[2024-06-27T01:36:21.880Z] ++ grep NEEDED
[2024-06-27T01:36:21.880Z] ++ objdump -p /tmp/jni-20240627013613/libnvcomp_gdeflate.so
[2024-06-27T01:36:21.880Z] ++ echo 'No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libnvcomp_gdeflate.so'
[2024-06-27T01:36:21.880Z] No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libnvcomp_gdeflate.so
[2024-06-27T01:36:21.880Z] ++ read -r so_file
[2024-06-27T01:36:21.880Z] ++ grep -qi cudart
[2024-06-27T01:36:21.880Z] ++ objdump -p /tmp/jni-20240627013613/libnvcomp.so
[2024-06-27T01:36:21.880Z] ++ grep NEEDED
[2024-06-27T01:36:21.880Z] ++ echo 'No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libnvcomp.so'
[2024-06-27T01:36:21.880Z] No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libnvcomp.so
[2024-06-27T01:36:21.880Z] ++ read -r so_file
[2024-06-27T01:36:21.880Z] ++ grep -qi cudart
[2024-06-27T01:36:21.880Z] ++ objdump -p /tmp/jni-20240627013613/libprofilerjni.so
[2024-06-27T01:36:21.880Z] ++ grep NEEDED
[2024-06-27T01:36:21.880Z] ++ echo 'No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libprofilerjni.so'
[2024-06-27T01:36:21.880Z] No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libprofilerjni.so
[2024-06-27T01:36:21.880Z] ++ read -r so_file
[2024-06-27T01:36:21.880Z] ++ grep -qi cudart
[2024-06-27T01:36:21.880Z] ++ objdump -p /tmp/jni-20240627013613/libnvcomp_bitcomp.so
[2024-06-27T01:36:21.880Z] ++ grep NEEDED
[2024-06-27T01:36:21.880Z] ++ echo 'No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libnvcomp_bitcomp.so'
[2024-06-27T01:36:21.880Z] No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libnvcomp_bitcomp.so
[2024-06-27T01:36:21.880Z] ++ read -r so_file
[2024-06-27T01:36:21.880Z] ++ grep -qi cudart
[2024-06-27T01:36:21.880Z] ++ grep NEEDED
[2024-06-27T01:36:21.880Z] ++ objdump -p /tmp/jni-20240627013613/libcudfjni.so
[2024-06-27T01:36:21.880Z] ++ echo 'No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libcudfjni.so'
[2024-06-27T01:36:21.880Z] No dynamic link to CUDA Runtime found in /tmp/jni-20240627013613/libcudfjni.so
[2024-06-27T01:36:21.880Z] ++ read -r so_file
fix #2164
Check shared objects for libcudf.so right after build&test in nightly, pre-merge, and submodule-syncup, fail the run if found cuda-related libs.
fail test run with revert commit https://github.com/NVIDIA/spark-rapids-jni/pull/2165
pass with latest change if no dynamical link of cuda libs
verified internally with cuda{11,12} and CPU arch_{amd64,aarch64}