Skip to content

Commit

Permalink
docker: fix typo in nivida docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed May 1, 2024
1 parent 0858081 commit 3c1dc38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,24 +142,14 @@ def parallel(item, m):
raise ValueError("Can't run test: unexpected mode `%s`" % m)

pyversion = sys.executable

# Keep all invocation arguments up to test path
params = item.config.invocation_params.args
pyarg = []
for p in params:
if p.startswith('tests'):
break
else:
pyarg.append(p)

# Only spew tracebacks on rank 0.
# Run xfailing tests to ensure that errors are reported to calling process
if item.cls is not None:
testname = "%s::%s::%s" % (item.fspath, item.cls.__name__, item.name)
else:
testname = "%s::%s" % (item.fspath, item.name)

args = ["-n", "1", pyversion, "-m", "pytest", "--no-summary", *pyarg,
args = ["-n", "1", pyversion, "-m", "pytest", "--no-summary", "-s",
"--runxfail", "-qq", testname]
if nprocs > 1:
args.extend([":", "-n", "%d" % (nprocs - 1), pyversion, "-m", "pytest",
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.nvidia
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ FROM sdk-base as nvc
ADD docker/nvdashboard.json /app/nvdashboard.json

# mpi4py
ENV MPI4PY_FLAGS='$HPCSDK_HOME/comm_libs/hpcx/latest/hpcx-init.sh && hpcx_load && CC=nvc CFLAGS="-noswitcherror -tp=px"'
ENV MPI4PY_FLAGS='source $HPCSDK_HOME/comm_libs/hpcx/latest/hpcx-init.sh && hpcx_load && CC=nvc CFLAGS="-noswitcherror -tp=px"'

ENV DEVITO_ARCH="nvc"
ENV DEVITO_PLATFORM="nvidiaX"
Expand Down

0 comments on commit 3c1dc38

Please sign in to comment.