Skip to content

Commit 44104d2

Browse files
committed
Initial recipes for pygpu/libgpuarray.
1 parent 3bab96a commit 44104d2

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

conda/libgpuarray/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX
2+
make install

conda/libgpuarray/meta.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{% set version = "0.7.0" %}
2+
3+
package:
4+
name: libgpuarray
5+
version: {{ version }}
6+
7+
source:
8+
fn: libgpuarray-{{ version }}.tar.gz
9+
url: https://github.com/Theano/libgpuarray/archive/v{{ version }}.tar.gz
10+
11+
build:
12+
number: 0
13+
skip: true # [win and py35]
14+
features:
15+
- vc9 # [win and py27]
16+
- vc10 # [win and py34]
17+
- vc14 # [win and py35]
18+
- vc14 # [win and py36]
19+
20+
requirements:
21+
build:
22+
- cmake
23+
- python # [win]
24+
25+
test:
26+
requires:
27+
- python {{ environ['PY_VER'] + '*' }} # [win]
28+
commands:
29+
- test -f ${PREFIX}/lib/libgpuarray.dylib # [osx]
30+
- test -f ${PREFIX}/lib/libgpuarray.so # [linux]
31+
- if not exist %PREFIX%\\Library\\lib\\gpuarray.lib exit 1 # [win]
32+
33+
about:
34+
home: http://github.com/Theano/libgpuarray
35+
license: ISC
36+
license_file: LICENSE
37+
summary: 'Library to manipulate arrays on GPU'
38+
doc_url: http://deeplearning.net/software/libgpuarray/
39+
dev_url: http://github.com/Theano/libgpuarray

conda/pygpu/meta.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{% set version = "0.7.0" %}
2+
3+
package:
4+
name: pygpu
5+
version: {{ version }}
6+
7+
source:
8+
fn: libgpuarray-{{ version }}.tar.gz
9+
url: https://github.com/Theano/libgpuarray/archive/v{{ version }}.tar.gz
10+
11+
build:
12+
number: 0
13+
script:
14+
- export CFLAGS="${CFLAGS} -I${PREFIX}/include -L${PREFIX}/lib" # [unix]
15+
- python setup.py install --single-version-externally-managed --record record.txt
16+
17+
requirements:
18+
build:
19+
- python
20+
- cython >=0.25
21+
- numpy x.x
22+
- mako
23+
- setuptools
24+
- libgpuarray =={{ version }}
25+
26+
run:
27+
- python
28+
- numpy x.x
29+
- mako
30+
- six
31+
- libgpuarray =={{ version }}
32+
33+
test:
34+
imports:
35+
- pygpu
36+
- pygpu.gpuarray
37+
38+
about:
39+
home: http://github.com/Theano/libgpuarray
40+
license: ISC
41+
license_file: LICENSE
42+
summary: 'Library to manipulate arrays on GPU'
43+
doc_url: http://deeplearning.net/software/libgpuarray/
44+
dev_url: http://github.com/Theano/libgpuarray

0 commit comments

Comments
 (0)