Skip to content

Commit 6edbca2

Browse files
committed
Merge commit with main
2 parents 81e36ff + cd6be8f commit 6edbca2

File tree

316 files changed

+95356
-15920
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

316 files changed

+95356
-15920
lines changed

.conda/build_variants.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ target_platform:
1212
- linux-64 # [linux]
1313
- linux-aarch64 # [linux]
1414
- linux-ppc64le # [linux]
15-
- osx-64 # [osx]
16-
- osx-arm64 # [osx]
15+
# - osx-64 # [osx] might not support intel based macs anymore
16+
- osx-arm64 # [osx]

.conda/elements/cpu/build.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
export SRC_DIR=$(pwd)
2+
echo ${SRC_DIR}
3+
mkdir -p build
4+
cd build
5+
6+
export MPI_FLAGS="--allow-run-as-root"
7+
8+
if [ $(uname) == Linux ]; then
9+
export MPI_FLAGS="$MPI_FLAGS;-mca;plm;isolated"
10+
fi
11+
12+
source "$RECIPE_DIR/../../cross-compile-setup.sh"
13+
14+
cmake -D CMAKE_BUILD_TYPE:STRING=RELEASE \
15+
-D CMAKE_INSTALL_PREFIX:PATH=$PREFIX \
16+
-D CMAKE_CXX_STANDARD:STRING=17 \
17+
-D VECTOR_ARCH_FLAGS="$VECTOR_ARCH_FLAGS" \
18+
-D Matar_ENABLE_KOKKOS=ON \
19+
$CMAKE_ARGS \
20+
$SRC_DIR \
21+
-D CMAKE_CXX_FLAGS="$PATCHED_CXXFLAGS" \
22+
23+
make install

.conda/elements/cpu/meta.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{% set version = "1.0.0" %}
2+
{% set linux_compiler_version = "10.4.0" %}
3+
{% set macos_compiler_version = "16" %}
4+
5+
package:
6+
name: elements-cpu
7+
version: {{ version }}
8+
9+
source:
10+
- git_url: https://github.com/lanl/ELEMENTS.git
11+
git_depth: 1
12+
13+
build:
14+
number: 1
15+
noarch: False
16+
script_env:
17+
- PLATFORM={{ target_platform }} # [linux]
18+
19+
requirements:
20+
build:
21+
- cmake >=3.17.0
22+
- {{ compiler('cxx') }}={{ linux_compiler_version }} # [linux]
23+
- {{ compiler('cxx') }}={{ macos_compiler_version }} # [osx]
24+
host:
25+
- openmpi >=4.1.6,<5.0a0
26+
run:
27+
- openmpi >=4.1.6,<5.0a0
28+
29+
about:
30+
home: https://github.com/lanl/ELEMENTS
31+
license: BSD-3-Clause
32+
license_family: BSD
33+
license_file: LICENSE
34+
summary:
35+
LANL's for lagrangian mesh libraries.
36+
description:
37+
The C++ ELEMENTS library is a collection of sub-libraries to support implementing a diverse range
38+
of numerical methods on low and high-order meshes. The ELEMENTS library can be used for research
39+
and development of both continuous and discontinuous finite element methods, as well as,
40+
finite volume methods to solve a diverse range of partial differential equations.
41+
dev_url: https://github.com/lanl/Fierro
42+
43+
extra:
44+
recipe-maintainers:
45+
- fierromechanics

.conda/elements/cuda/LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2021, Los Alamos National Laboratory
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

.conda/elements/cuda/build.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
export SRC_DIR=$(pwd)
2+
echo ${SRC_DIR}
3+
mkdir -p build
4+
cd build
5+
6+
export MPI_FLAGS="--allow-run-as-root"
7+
8+
if [ $(uname) == Linux ]; then
9+
export MPI_FLAGS="$MPI_FLAGS;-mca;plm;isolated"
10+
fi
11+
12+
source "$RECIPE_DIR/../../cross-compile-setup.sh"
13+
14+
cmake -D CMAKE_BUILD_TYPE:STRING=RELEASE \
15+
-D CMAKE_INSTALL_PREFIX:PATH=$PREFIX \
16+
-D CMAKE_CXX_STANDARD:STRING=17 \
17+
-D VECTOR_ARCH_FLAGS="$VECTOR_ARCH_FLAGS" \
18+
-D Matar_ENABLE_KOKKOS=ON \
19+
$CMAKE_ARGS \
20+
$SRC_DIR \
21+
-D CMAKE_CXX_FLAGS="$PATCHED_CXXFLAGS" \
22+
23+
make install
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
c_compiler:
2+
- gcc
3+
cxx_compiler:
4+
- gxx
5+
target_platform:
6+
- linux-64 # [linux]
7+
#- linux-aarch64
8+
#- linux-ppc64le
9+
- osx-64 # [osx]
10+
- osx-arm64 # [osx]

.conda/elements/cuda/meta.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{% set version = "1.0.0" %}
2+
{% set linux_compiler_version = "10.4.0" %}
3+
#{% set macos_compiler_version = "16" %}
4+
5+
package:
6+
name: elements-cuda
7+
version: {{ version }}
8+
9+
source:
10+
- git_url: https://github.com/lanl/ELEMENTS.git
11+
git_depth: 1
12+
13+
build:
14+
number: 1
15+
noarch: False
16+
script_env:
17+
- PLATFORM={{ target_platform }}
18+
skip: True # [osx]
19+
skip: False # [linux]
20+
21+
requirements:
22+
build:
23+
- cmake >=3.17.0
24+
- {{ compiler('cxx') }}={{ linux_compiler_version }}
25+
- cuda-toolkit
26+
- matar-cuda
27+
- openmpi
28+
host:
29+
- openmpi >=4.1.6,<5.0a0
30+
- matar-cuda
31+
- kokkos=4.1
32+
run:
33+
- openmpi >=4.1.6,<5.0a0
34+
- matar-cuda
35+
- kokkos=4.1
36+
37+
about:
38+
home: https://github.com/lanl/ELEMENTS
39+
license: BSD-3-Clause
40+
license_family: BSD
41+
license_file: LICENSE
42+
summary:
43+
LANL's for lagrangian mesh libraries.
44+
description:
45+
The C++ ELEMENTS library is a collection of sub-libraries to support implementing a diverse range
46+
of numerical methods on low and high-order meshes. The ELEMENTS library can be used for research
47+
and development of both continuous and discontinuous finite element methods, as well as,
48+
finite volume methods to solve a diverse range of partial differential equations.
49+
dev_url: https://github.com/lanl/Fierro
50+
51+
extra:
52+
recipe-maintainers:
53+
- fierromechanics

.conda/evpfft/cpu/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Patch the cxx variables for cross-compilation
22
source "$RECIPE_DIR/../../cross-compile-setup.sh"
33

4+
#-D VECTOR_ARCH_FLAGS="$VECTOR_ARCH_FLAGS" \
5+
46
cd src/EVPFFT
57
mkdir build
68
cd build
79
cmake ../src/ \
810
-D CMAKE_INSTALL_PREFIX:PATH=$PREFIX \
9-
-D VECTOR_ARCH_FLAGS="$VECTOR_ARCH_FLAGS" \
1011
-D USE_FFTW=1 \
1112
$CMAKE_ARGS \
1213
-D CMAKE_CXX_FLAGS="$PATCHED_CXXFLAGS" \

.conda/evpfft/cpu/meta.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,20 @@ requirements:
2525
- {{ compiler('cxx') }}={{ macos_compiler_version }} # [osx]
2626
- openmpi
2727
host:
28-
- openmpi
29-
- fierro-heffte
28+
#- openmpi
29+
- openmpi >=4.1.6,<5.0a0
30+
- heffte-cpu
3031
- fftw=*=mpi_openmpi_*
3132
- kokkos=4.1
3233
- hdf5=*=mpi_openmpi_*
33-
- elements
34+
- elements-cpu
3435
run:
35-
- openmpi
36-
- fierro-heffte
36+
- openmpi >=4.1.6,<5.0a0
37+
- heffte-cpu
3738
- fftw=*=mpi_openmpi_*
3839
- kokkos=4.1
3940
- hdf5=*=mpi_openmpi_*
40-
- elements
41+
- elements-cpu
4142

4243
#TODO: Add tests
4344

0 commit comments

Comments
 (0)