Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Oct 30, 2024
1 parent 252b5ef commit 3aa9492
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 10 deletions.
3 changes: 3 additions & 0 deletions conda/.condarc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
conda-build:
pkg_format: 2
channels:
- conda-forge
- nodefaults
2 changes: 1 addition & 1 deletion conda/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ function cleanup {

trap cleanup EXIT

conda mambabuild "$@"
conda build "$@"
10 changes: 5 additions & 5 deletions conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ zip_keys:

python:
# part of a zip_keys: python, numpy
- 3.9.* *_cpython
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.12.* *_cpython
- 3.13.* *_cpython
- 3.9.*
- 3.10.*
- 3.11.*
- 3.12.*
- 3.13.*

numpy:
# part of a zip_keys: python, numpy
Expand Down
14 changes: 11 additions & 3 deletions conda/greatlakes.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash

#SBATCH --job-name="glotzerlab-software build"
#SBATCH --account=sglotzer0
#SBATCH --account=sglotzer9
#SBATCH --partition=standard
#SBATCH --nodes=1
#SBATCH --tasks-per-node=1
#SBATCH --cpus-per-task=36
#SBATCH --mem=144g
#SBATCH --time=8:00:00
#SBATCH --exclude=gl3047,gl3053,gl3054,gl3056,gl3057,gl3064,gl3118,gl3120,gl3163,gl3243,gl3260,gl3270, gl[3384-3457]
#SBATCH --exclude=gl3047,gl3053,gl3054,gl3056,gl3057,gl3064,gl3118,gl3120,gl3163,gl3243,gl3260,gl3270,gl[3384-3457]

export OUTPUT_FOLDER=/nfs/turbo/glotzer/software/conda
unset CMAKE_PREFIX_PATH
Expand All @@ -17,7 +17,15 @@ unset CMAKE_PREFIX_PATH
module reset
module load gcc/10.3.0 openmpi/4.1.6 cuda/12.3.0

export TMPDIR=/tmpssd
echo -n "Executing on host: " && hostname

if [ -d "/tmpssd" ]; then
export TMPDIR=/tmpssd
echo "Using /tmpsdd for build."
else
export TMPDIR=/tmp
echo "Warning! /tmpssd does not exist. Using /tmp for build."
fi

./build.sh "$@" \
--skip-existing \
Expand Down
2 changes: 1 addition & 1 deletion conda/mpi4py/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package:
source:
- fn: mpi4py-{{ version }}.tar.gz
url: https://github.com/mpi4py/mpi4py/releases/download/{{ version }}/mpi4py-{{ version }}.tar.gz
sha256: c8fa625e0f92b082ef955bfb52f19fa6691d29273d7d71135d295aa143dee6cb
sha256: f3174b245775d556f4fddb32519a2066ef0592edc810c5b5a59238f9a0a40c89

build:
binary_relocation: False
Expand Down

0 comments on commit 3aa9492

Please sign in to comment.