Skip to content

Commit 83bbd22

Browse files
committed
Enforce memlock ulimits only when we are actually using the GPU
1 parent 50abe19 commit 83bbd22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prodtests/full-system-test/setenv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Make sure we can open sufficiently many files / allocate enough memory
4-
ulimit -n 4096 && ulimit -l unlimited && ulimit -m unlimited && ulimit -l unlimited
4+
ulimit -n 4096 && ulimit -m unlimited && ulimit -l unlimited && [ -z "$GPUTYPE" ] || [ "$GPUTYPE" == "CPU" ] || ulimit -l unlimited
55
if [ $? != 0 ]; then
66
echo Error setting ulimits
77
exit 1

0 commit comments

Comments
 (0)