Skip to content

Commit 37a0e93

Browse files
committed
updated user in compile.sh
1 parent 7ce26bf commit 37a0e93

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

samples/nccl_compile/compile.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ if [[ "$mpivars_path" == "" ]]; then
1414
source $mpivars_path
1515
MPI_HOME=${mpivars_path%%/bin*}
1616

17-
source /etc/os-release
18-
if [ $ID == "ol" ] || [ $ID == "centos" ] ; then
19-
USER=opc
20-
elif [ $ID == "debian" ] || [ $ID == "ubuntu" ] ; then
21-
USER=ubuntu
22-
fi
17+
USER=`whoami`
2318

2419
cd /home/$USER
2520
rm -rf nccl-tests

0 commit comments

Comments
 (0)