#!/bin/bash

set -x
npuID=`npu-smi info -m | grep Ascend | awk '{print $1}'`
chipID=`npu-smi info -m | grep Ascend | awk '{print $2}'`

#set share device for npu
yes | npu-smi set -t device-share -i $npuID -d 1
set +x
