Closed
Description
I created a new spacksite in Myriad using Spack 0.22 on the build01
node:
[ccspapp@build01 hpc-spack]$ spacksites/spacksites create fc-myriad-s0.22-test
/spack/0.22/fc-myriad-s0.22-test/spack/share/spack/setup-env.sh spack compiler find --scope=site
# SPACKSITES: have set SPACK_DISABLE_LOCAL_CONFIG=1
# SPACKSITES: have set HPC_SPACK_ROOT=/lustre/scratch/scratch/ccspapp/spack/0.22/hpc-spack
# SPACKSITES: Have set spacks's external compiler and python dependencies - now calling spack compiler find --scope=site
==> Added 3 new compilers to /lustre/shared/ucl/apps/spack/0.22/fc-myriad-s0.22-test/spack/etc/spack/compilers.yaml
[email protected] [email protected] [email protected]
==> Compilers are defined in the following files:
/lustre/shared/ucl/apps/spack/0.22/fc-myriad-s0.22-test/spack/etc/spack/compilers.yaml
# SPACKSITES: Now calling: #######
source /lustre/scratch/scratch/ccspapp/spack/0.22/hpc-spack/spacksites/process-env-scripts/spack-deps-rhel-7.8.sh
source /shared/ucl/apps/spack/0.22/fc-myriad-s0.22-test/spack/share/spack/setup-env.sh
spack config --scope=site get config
# SPACKSITES: ####################
# SPACKSITES: site.build_stage set to: /shared/ucl/apps/spack/0.22/fc-myriad-s0.22-test/spack/../build_stage
gpg key trust done so I can use the buildcache
(spacksite: fc-myriad-s0.22-test) [ccspapp@build01 hpc-spack]$ spack gpg trust /shared/ucl/apps/spack/0.22/buildcache/build_cache/_pgp/8AD9CBD92CD2A4AEB15F3458969BB097C2225210.pub
gpg: key C2225210: public key "ARCHPCSolutions (GPG created for Spack) <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
gpg: inserting ownertrust of 6
but then I had an empty list of the buildcache:
(spacksite: fc-myriad-s0.22-test) [ccspapp@build01 hpc-spack]$ spack buildcache list --allarch
==> 0 cached builds.
so I tried updating the indexing without the flag -d
and it works!
(spacksite: fc-myriad-s0.22-test) [ccspapp@build01 hpc-spack]$ spack buildcache update-index -d /shared/ucl/apps/spack/0.22/buildcache
==> Error: unrecognized arguments: -d
(spacksite: fc-myriad-s0.22-test) [ccspapp@build01 hpc-spack]$ spack buildcache update-index /shared/ucl/apps/spack/0.22/buildcache
(spacksite: fc-myriad-s0.22-test) [ccspapp@build01 hpc-spack]$ spack buildcache list --allarch
==> 134 cached builds.
-- linux-rhel7-cascadelake / [email protected] -------------------------
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
-- linux-rhel7-cascadelake / [email protected] -------------------------
[email protected] [email protected] ...
Experimenting with the myriad.yaml
generated by Heather see https://github.com/UCL-ARC/hpc-spack/issues/56
(spacksite: fc-myriad-s0.22-test) [ccspapp@build01 hpc-spack]$ spack env create -d myproject $HPC_SPACK_ROOT/spacksites/spack-env-templates/dev1/build/myriad.yaml
==> Created independent environment in: /lustre/scratch/scratch/ccspapp/spack/0.22/hpc-spack/myproject
==> Activate with: spack env activate myproject
I activated my env myproject
(spacksite: fc-myriad-s0.22-test) [ccspapp@build01 hpc-spack]$ spack env activate -p myproject
[myproject] (spacksite: fc-myriad-s0.22-test) [ccspapp@build01 hpc-spack]$ spack find
==> In environment /lustre/scratch/scratch/ccspapp/spack/0.22/hpc-spack/myproject
==> 19 root specs
-- no arch / [email protected] -----------------------------------------
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected] +cuda+mpi+openmp~sirius build_system=cmake cuda_arch=80
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected] +cxx+fortran+hl~mpi
- [email protected]%[email protected] +fortran+hl+mpi
- [email protected]%[email protected]
- [email protected]%[email protected] ~mpi
- [email protected]%[email protected]
- [email protected]%[email protected] fabrics=cma,knem,ofi,psm2,ucx,xpmem schedulers=sge
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
==> 0 installed packages
Adding Gromacs to the spec in my env myproject
and then concretise
spack add [email protected]%[email protected]+double ^[email protected]%[email protected]
==> Adding [email protected]%[email protected]+double ^[email protected]%[email protected] to environment /lustre/scratch/scratch/ccspapp/spack/0.22/hpc-spack/myproject
Gromacs is added to the root specs
spack find
==> In environment /lustre/scratch/scratch/ccspapp/spack/0.22/hpc-spack/myproject
==> 20 root specs
-- no arch / [email protected] -----------------------------------------
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected] +cuda+mpi+openmp~sirius build_system=cmake cuda_arch=80
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected] +double
- [email protected]%[email protected]
- [email protected]%[email protected] +cxx+fortran+hl~mpi
- [email protected]%[email protected] +fortran+hl+mpi
- [email protected]%[email protected]
- [email protected]%[email protected] ~mpi
- [email protected]%[email protected]
- [email protected]%[email protected] fabrics=cma,knem,ofi,psm2,ucx,xpmem schedulers=sge
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
- [email protected]%[email protected]
==> 0 installed packages
I need to define a rule to exclude installing/concretising cp2k in my env ???
Metadata
Metadata
Assignees
Labels
No labels