Skip to content

Commit 2848b59

Browse files
author
abergeron
authored
Merge pull request #508 from abergeron/conda
Add conda recipes in the tree
2 parents cbd013b + be5ccb5 commit 2848b59

File tree

6 files changed

+102
-0
lines changed

6 files changed

+102
-0
lines changed

conda/libgpuarray/bld.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
cmake -G"NMake Makefiles" ^
2+
-DCMAKE_BUILD_TYPE=Release ^
3+
-DCMAKE_PREFIX_PATH="%LIBRARY_PREFIX%" ^
4+
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
5+
-DCMAKE_C_FLAGS="-I%LIBRARY_PREFIX%\include" ^
6+
"%SRC_DIR%"
7+
cmake --build . --config Release --target ALL_BUILD
8+
cmake --build . --config Release --target install

conda/libgpuarray/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [[ $(uname) == Darwin ]]; then
4+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_OSX_DEPLOYMENT_TARGET=
5+
else
6+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX
7+
fi
8+
cmake --build . --config Release --target all
9+
cmake --build . --config Release --target install

conda/libgpuarray/meta.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 or py36)]
18+
19+
requirements:
20+
build:
21+
- m2-git [win]
22+
- m2-filesystem [win]
23+
- git [not win]
24+
- cmake
25+
- mako
26+
- python
27+
run:
28+
- vs2008_runtime [win and py27]
29+
- vs2010_runtime [win and py34]
30+
- vs2015_runtime [win and (py35 or py36)]
31+
32+
about:
33+
home: http://github.com/Theano/libgpuarray
34+
license: ISC
35+
license_file: LICENSE
36+
summary: 'Library to manipulate arrays on GPU'
37+
doc_url: http://deeplearning.net/software/libgpuarray/
38+
dev_url: http://github.com/Theano/libgpuarray

conda/pygpu/bld.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set LIB=%LIBRARY_LIB%;%LIB%
2+
set INCLUDE=%LIBRARY_INC%;%INCLUDE%
3+
%PYTHON% setup.py install --single-version-externally-managed --record=record.txt

conda/pygpu/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
export CFLAGS=${CFLAGS}" -I${PREFIX}/include -L${PREFIX}/lib"
4+
$PYTHON setup.py install --single-version-externally-managed --record=record.txt

conda/pygpu/meta.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
detect_binary_files_with_prefix: False
14+
15+
requirements:
16+
build:
17+
- m2-git [win]
18+
- m2-filesystem [win]
19+
- git [not win]
20+
- python
21+
- cython >=0.25
22+
- numpy x.x
23+
- mako
24+
- setuptools
25+
- libgpuarray =={{ version }}
26+
27+
run:
28+
- python
29+
- numpy x.x
30+
- mako
31+
- six
32+
- libgpuarray =={{ version }}
33+
34+
about:
35+
home: http://github.com/Theano/libgpuarray
36+
license: ISC
37+
license_file: LICENSE
38+
summary: 'Library to manipulate arrays on GPU'
39+
doc_url: http://deeplearning.net/software/libgpuarray/
40+
dev_url: http://github.com/Theano/libgpuarray

0 commit comments

Comments
 (0)