NVIDIA / hpc-container-maker

HPC Container Maker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to specify the architecture in a conda building block?

VI-gha opened this issue · comments

By default when installing Anaconda the architecture is Linux-x86_64 (with Miniconda3-py38_4.8.3-Linux-x86_64.sh).
How to change to Linux-ppc64le (which would require for example Miniconda3-py38_4.9.2-Linux-ppc64le.sh)?

You should just need to start from a ppc64le base image, e.g.,

Stage0 += baseimage(image='ppc64le/centos:7')
Stage0 += conda(eula=True, packages=['numpy', 'scipy'])

If your base image does not have an identifiable ppc64le name, you can specify it, e.g.,

Stage0 += baseimage(image='myimage', _arch='ppc64le')
Stage0 += conda(...)

Great, thanks !