openhackathons-org / gpubootcamp

This repository consists for gpu bootcamp material for HPC and AI
Apache License 2.0
513 stars 254 forks source link

Singularity build fails - hpc_ai #109

Closed rameshmpi closed 2 years ago

rameshmpi commented 2 years ago

Hello!

When running singularity build on the hpc_ai (https://github.com/openhackathons-org/gpubootcamp/tree/master/hpc_ai/Singularity), I encounter the following error. Could you please suggest a solution?

2022/06/17 13:36:50 info unpack layer: sha256:1f924a0df31b2d8c004832e20fd977dd60adc039f76fdd7a09613d2d020df874 INFO: Copying English/ to /aux/pc152a/tmp/rootfs-99e69050-ee30-11ec-83c5-54bf6473ba5c/workspace/ FATAL: container creation failed: unable to copy files to container fs: while copying [English/] to /aux/pc152a/tmp/rootfs-99e69050-ee30-11ec-83c5-54bf6473ba5c/workspace/: exit status 1: /bin/cp: cannot stat 'English/*': No such file or directory FATAL: While performing build: while running engine: while running /usr/lib/x86_64-linux-gnu/singularity/bin/starter: exit status 255

root@pc152:/aux/pc152a/Docker# singularity --version singularity version 3.5.2+ds1

And I set the following as well with /aux/pc152a having ample space (200+ GB):

SINGULARITY_TMPDIR=/aux/pc152a/tmp SINGULARITY_CACHEDIR=/aux/pc152a/cache

rameshmpi commented 2 years ago

My mistake - what works is: git clone https://github.com/openhackathons-org/gpubootcamp.git cd gpubootcamp/hpc_ai/ai_science_climate singularity build ai.simg Singularity

Plus setting up SINGULARITY_CACHEDIR and SINGULARITY_TMPDIR.