-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added idg conda package * idg workflow file deleted to re-add on main branch * Cast build number to int to perform addition * Fix build nr cast * Fix build nr cast #2
- Loading branch information
Showing
4 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
mkdir build; cd build | ||
|
||
if [ -z $mpi ]; then | ||
mpi='nompi' | ||
fi | ||
|
||
if [ $mpi = 'nompi' ]; then | ||
BUILD_WITH_MPI="OFF" | ||
else | ||
BUILD_WITH_MPI="ON" | ||
fi | ||
|
||
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX -DBUILD_LIB_CUDA="ON" -DBUILD_WITH_MPI=$BUILD_WITH_MPI .. | ||
|
||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
mpi: | ||
- nompi | ||
- mpich | ||
- openmpi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package: | ||
name: {{ PACKAGE_NAME|lower }} | ||
version: {{ IDG_VERSION_ALT }} | ||
|
||
source: | ||
git_url: https://gitlab.com/astron-idg/idg.git | ||
git_tag: {{ IDG_VERSION }} | ||
|
||
# ensure mpi is defined (needed for conda-smithy recipe-lint) | ||
{% set mpi = mpi or 'nompi' %} | ||
|
||
{% if mpi == 'nompi' %} | ||
# prioritize nompi variant via build number | ||
{% set build = build | int + 100 %} | ||
{% endif %} | ||
|
||
build: | ||
number: {{ build }} | ||
|
||
{% if mpi != 'nompi' %} | ||
{% set mpi_prefix = "mpi_" + mpi %} | ||
{% else %} | ||
{% set mpi_prefix = "nompi" %} | ||
{% endif %} | ||
string: "{{ mpi_prefix }}_h{{ PKG_HASH }}_{{ build }}" | ||
|
||
{% if mpi != 'nompi' %} | ||
run_exports: | ||
- {{ PACKAGE_NAME|lower }} * {{ mpi_prefix }}_* | ||
{% endif %} | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- cmake | ||
- make | ||
- fftw3f | ||
- libblas | ||
- libcblas | ||
|
||
host: | ||
- fftw3f | ||
- libblas | ||
- libcblas | ||
- {{ mpi }} # [mpi != 'nompi'] | ||
|
||
run: | ||
- fftw3f | ||
- {{ mpi }} # [mpi != 'nompi'] | ||
|
||
about: | ||
home: https://idg.readthedocs.io | ||
license: GPLv3 | ||
summary: 'Image Domain Gridding' | ||
doc_url: https://idg.readthedocs.io | ||
dev_url: https://gitlab.com/astron-idg/idg | ||
|
||
extra: | ||
recipe-maintainers: | ||
- [email protected] |