Project

General

Profile

Converting your UPS products area to a mixed UPS/Spack area

These notes assume you have a "Unified" ups layout

Install spack_infrastructure

   P1=/your/products/area
   . $P1/setups
   setup upd
   upd install spack_infrastructure -G -c 

Put a spack instance in there, too

   P1=/your/products/area
   . $P1/setups
   setup spack_infrastructure
   make_spack -u $P1

add Spack declarations for existing ups products

   P1=/your/products/area
   . $P1/setups
   . $P1/setup-env.sh 
   ups_to_spack -a product1
   ups_to_spack product2 vx_y
   spack reindex

you can in theory just run ups_to_spack -a to just convert everything, but
this is a v1_0 package. Some old ups packages (i.e. "setpath" ) are known to
not convert well.

Using the combined area:

via ups:

    source /your/products/area/setups
    ups list -a package
    setup package version -f Flavor -q quals

via Spack:

   source /your/products/area/setup-env.sh
   spack find -l package
   spack load package/hash