#!/bin/bash
# Exit on error (-e), treat unset variables as errors (-u), and propagate
# pipeline failures (-o pipefail) so any silent failure is caught early
# When running as root (e.g. inside Docker), act as a no-op wrapper;
# otherwise delegate to the real sudo
# Install the Intel oneAPI toolkit package
# Source the oneAPI environment to make MKLROOT and compiler paths available;
# suppress -u temporarily because setvars.sh references variables before setting them
# Remove the broken non-ELF file that ships with MKL and confuses ldconfig
# See https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ldconfig-opt-intel-oneapi-redist-lib-libmkl-sycl-so-is-not-an/m-p/1549240#M35528
WEIRD_FILE="/lib/intel64/libmkl_sycl.so"
if [; then
fi
# Register the MKL library path with the dynamic linker
|