Skip to content

Commit

Permalink
Add working incline build
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronrutherford committed Oct 31, 2023
1 parent 7ea6515 commit 16f984f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
6 changes: 5 additions & 1 deletion buildsystem/spack/incline/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ module purge
module load python/miniconda4.12
source /share/apps/python/miniconda4.12/etc/profile.d/conda.sh

export HTTPS_PROXY=http://proxy01.pnl.gov:3128
export https_proxy=http://proxy01.pnl.gov:3128

# Define environment variables for where spack stores key files
# For now, SPACK_INSTALL is the path where everything spack related is installed
# If you want to modify the module install path, edit the spack.yaml manually
BASE=/qfs/projects/exasgd/resolve/spack-ci
export SPACK_INSTALL=$BASE/install
export SPACK_MIRROR=$BASE/../$(whoami)/spack-mirror
export SPACK_CACHE=$BASE/../$(whoami)/spack-cache
export SPACK_DISABLE_LOCAL_CONFIG=1
export SPACK_PYTHON=$(which python)
export SPACK_PYTHON=$(which python3)

export tempdir=$SPACK_CACHE
export TMP=$SPACK_CACHE
Expand Down
31 changes: 28 additions & 3 deletions buildsystem/spack/incline/spack.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
spack:
specs:
- resolve~cuda%gcc@8.4.0
- resolve~cuda+rocm%gcc@8.4.0 amdgpu_target=gfx908
- hsa-rocr-dev~image
view: false
concretizer:
reuse: false
unify: when_possible
reuse: true
config:
concretizer: clingo
install_tree:
root: $SPACK_INSTALL
source_cache: $SPACK_CACHE/source
misc_cache: $SPACK_CACHE/misc
build_stage: $SPACK_CACHE/build
url_fetch_method: curl
url_fetch_method: urllib
modules:
default:
roots:
Expand All @@ -23,6 +24,30 @@ spack:
write: group
read: world
group: exasgd
curl:
externals:
- spec: curl@7.29.0
prefix: /usr/bin/curl
buildable: false
git:
externals:
- spec: git@2.42.0
prefix: /share/apps/git/2.42.0
modules:
- git/2.42.0
buildable: false
lua:
externals:
- spec: lua@5.4.2
modules:
- lua/5.4.2
buildable: false
python:
externals:
- spec: python@3.9.12
modules:
- python/miniconda4.12
buildable: false
perl:
externals:
- spec: perl@5.26.0
Expand Down
2 changes: 1 addition & 1 deletion buildsystem/spack/spack
Submodule spack updated 197 files

0 comments on commit 16f984f

Please sign in to comment.