Fixed wrapper to respect symlink pathing (#1984)
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Tento commit je obsažen v:
@@ -2961,6 +2961,9 @@ amdsmi_get_pcie_info.argtypes = [amdsmi_processor_handle, ctypes.POINTER(struct_
|
||||
amdsmi_get_gpu_xcd_counter = _libraries['libamd_smi.so'].amdsmi_get_gpu_xcd_counter
|
||||
amdsmi_get_gpu_xcd_counter.restype = amdsmi_status_t
|
||||
amdsmi_get_gpu_xcd_counter.argtypes = [amdsmi_processor_handle, ctypes.POINTER(ctypes.c_uint16)]
|
||||
amdsmi_get_npm_info = _libraries['libamd_smi.so'].amdsmi_get_npm_info
|
||||
amdsmi_get_npm_info.restype = amdsmi_status_t
|
||||
amdsmi_get_npm_info.argtypes = [amdsmi_node_handle, ctypes.POINTER(struct_amdsmi_npm_info_t)]
|
||||
amdsmi_get_fw_info = _libraries['libamd_smi.so'].amdsmi_get_fw_info
|
||||
amdsmi_get_fw_info.restype = amdsmi_status_t
|
||||
amdsmi_get_fw_info.argtypes = [amdsmi_processor_handle, ctypes.POINTER(struct_amdsmi_fw_info_t)]
|
||||
@@ -2991,9 +2994,6 @@ amdsmi_get_violation_status.argtypes = [amdsmi_processor_handle, ctypes.POINTER(
|
||||
amdsmi_get_gpu_process_list = _libraries['libamd_smi.so'].amdsmi_get_gpu_process_list
|
||||
amdsmi_get_gpu_process_list.restype = amdsmi_status_t
|
||||
amdsmi_get_gpu_process_list.argtypes = [amdsmi_processor_handle, ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(struct_amdsmi_proc_info_t)]
|
||||
amdsmi_get_npm_info = _libraries['libamd_smi.so'].amdsmi_get_npm_info
|
||||
amdsmi_get_npm_info.restype = amdsmi_status_t
|
||||
amdsmi_get_npm_info.argtypes = [amdsmi_node_handle, ctypes.POINTER(struct_amdsmi_npm_info_t)]
|
||||
amdsmi_gpu_driver_reload = _libraries['libamd_smi.so'].amdsmi_gpu_driver_reload
|
||||
amdsmi_gpu_driver_reload.restype = amdsmi_status_t
|
||||
amdsmi_gpu_driver_reload.argtypes = []
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
set -eu
|
||||
|
||||
# get current dir
|
||||
DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )/.." &> /dev/null && pwd )
|
||||
DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )/.." &> /dev/null && pwd -P )
|
||||
|
||||
# override by calling this script with:
|
||||
# DOCKER_NAME=yourdockername ./update_wrapper.sh
|
||||
@@ -40,7 +40,7 @@ DOCKER_BUILDKIT=$(docker buildx version >/dev/null 2>&1 && echo 1 || echo 0)
|
||||
export DOCKER_BUILDKIT
|
||||
|
||||
build_docker_image () {
|
||||
DOCKER_DIR="$DIR/py-interface"
|
||||
DOCKER_DIR=$(cd "$DIR/py-interface" && pwd -P)
|
||||
DOCKERFILE="$DOCKER_DIR/Dockerfile"
|
||||
|
||||
DOCKERFILE_TIME=$(git log -1 --format=%at -- "$DOCKERFILE")
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele