-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeta.yaml
103 lines (89 loc) · 2.79 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{% set version = "2.3.0" %}
{% set name = "goofit" %}
{% set goofit_proc_type = "cpu" if cuda_compiler_version|default("None") == "None" else "gpu" %}
{% set goofit_cuda_supported = ["None", "9.2", "10.0"] %}
package:
name: goofit-split
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: b27a7f62f9fecedcab95f8c06d51c11a73a3ebfdb3b5827a173a73198f223633
build:
skip: true # [win]
{% if cuda_compiler_version|default("None") not in goofit_cuda_supported %}
skip: true
{% endif %}
number: 2
outputs:
- name: goofit-proc
version: 1.0.0
build:
number: 2
string: {{ goofit_proc_type }}
test:
commands:
- exit 0
about:
home: https://github.com/conda-forge/goofit-feedstock
license: BSD-3-Clause
license_family: BSD
summary: A meta-package to select CPU or GPU GooFit build.
- name: goofit
version: {{ version }}
build:
number: 2
requirements:
build:
- {{ compiler("c") }}
- {{ compiler("cxx") }}
- {{ compiler("cuda") }} # [linux and cuda_compiler_version != "None"]
- cmake ==3.15.*
- make
- llvm-openmp # [osx]
- libgomp # [linux and not aarch64 and cuda_compiler_version == "None"]
host:
- python
- scikit-build
- pip
- llvm-openmp # [osx]
- libgomp # [linux and not aarch64 and cuda_compiler_version == "None"]
run:
- python
- numpy >=1.11.1
- llvm-openmp # [osx]
- libgomp # [linux and not aarch64]
run_constrained:
- goofit-proc * {{ goofit_proc_type }}
- __osx >={{ MACOSX_DEPLOYMENT_TARGET|default("10.9") }} # [osx]
script: build-cpu.sh # [not linux or cuda_compiler_version == "None"]
script: build-gpu.sh # [linux and cuda_compiler_version != "None"]
test:
requires:
- pytest
source_files:
- python/tests/test_exp.py
imports:
- goofit
commands:
- $PYTHON -m goofit
- $PYTHON -m pytest python/tests/test_exp.py # [not linux or cuda_compiler_version == "None"]
about:
home: https://github.com/GooFit/GooFit
license: LGPL-3.0-only
license_family: LGPL
license_file: LICENSE
summary: A fitting package for GPU and CPU
description: |
GooFit is split into GPU and CPU versions on Linux. If you want to install for gpus, you can do:
```bash
conda install goofit goofit-proc=*=gpu
```
You can add `cudatoolkit=10.0` or `9.2` if you want a specific toolkit version.
The OpenMP CPU version is default, but can be explicitly requested with:
```bash
conda install goofit goofit-proc=*=cpu
```
extra:
recipe-maintainers:
- chrisburr
- danielsibemol
- henryiii