enable_FEATURE[=ARG] is not working
likueimo opened this issue · comments
env:
- CentOS 7
- Python 2.7.5/pip 8.1.2
- hpccm 20.2.0
- install by
sudo pip install hpccm
script:
import hpccm
# Use appropriate container base images based on the CPU architecture
arch = 'x86_64'
default_build_image = 'nvidia/cuda:10.1-devel-ubuntu18.04'
default_runtime_image = 'nvidia/cuda:10.1-base-ubuntu18.04'
########
# Build stage (Stage 0)
########
# Base image
Stage0 += baseimage(image=USERARG.get('build_image', default_build_image),
_arch=arch, _as='build')
Stage0 += ucx(
enable_devel-headers=True,
gdrcopy='/usr/local/gdrcopy',
knem='/usr/local/knem',
without_java=True,
ofed=True,
ldconfig=True,
version='1.7.0',
)
cmd:
hpccm --recipe test.py --format singularity --singularity-version=3.2 > test.def
msg:
ERROR: keyword can't be an expression (test.py, line 17)
other blocks package have same issue with enable_FEATURE
Please change the line enable_devel-headers=True,
to enable_devel_headers=True,
(note the change of a dash to an underscore).