Skip to content

Commit

Permalink
First stab at PyOpenCL with OSX POCL
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Feb 13, 2017
1 parent dfbbee8 commit 313a75c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
matrix:
- [[OSX_VARIANT, 'native']]
- [[OSX_VARIANT, 'pocl']]
travis:
secure:
BINSTAR_TOKEN: LCzlx0KdQE4MiuiJRR2J6pSeFB540jxmVg8qYO4duJ6AI5hCL6CdK3/btt4EkLXeY5TLZ52OEXOdt1kKmfXkHq42q7fDRUWb+IMaBweeO1IAbGQufwuNsXaKqlEir2kDpYYkJqZZB5FxOTg9d850o56JsWbtFCCN3maL/yQZzZ2PfdrnNX/BkTnlPETR3lcJbMcxNWbY8HTYN6bU/Jsj6/+PPfb5E0zq1j0xFTA7Jd7TWvZnxnI3HJEHBo5FHZAUakGpPEPr1bmVpnZu/0/mkTfjLBlzwXx+/f7ywJrVHr6EI1/c5udndlMcduztCZflDuG0t+Tg93su36DqSySEnZAiK2fOIixDy97c+W/zWXRlpq3KoIBEGjTr8bUnlA/jpywDxS4A9IFXw7L3Va66MPWFYQo0S6k03WeUl1ckW3pzuI24m0YCCzjAbVNtiskH1ED6iNA4BdR5Sp1jVjumgPHqsOHY71JzOVr2CiF55wCX2+iUPKRpteU5pRf6imHkK/IvHcLt9T37cbPK9K5pW7N932cx6/8s3u67xcle/oqmrpMrK48tzWOlfg9txnq6jSSFfsNFimT1bfB8vyQNtWbQBIPca0G27/bBVfN1gYyylUdboIa9+vs3pMvC4e7uSbVN+DSE+mEG6ib6TnBXxB2hCu5X2yAGhD/yTx2psIU=
Expand Down
2 changes: 1 addition & 1 deletion recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ elif [[ "$unamestr" == 'Darwin' ]]; then
platform='osx'
fi

if [ "$platform" == 'linux' ]; then
if [[ "$platform" == 'linux' || "$OSX_VARIANT" == 'pocl' ]]; then
./configure.py --cl-inc-dir=$PREFIX/include --cl-lib-dir=$PREFIX/lib
fi

Expand Down
16 changes: 16 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% set name = "pyopencl" %}
{% set version = "2016.2.1" %}
{% set sha256 = "3fcb59ab9c85e08d96a24388a736cc3d0bbd9608efff96ecb25d3124fde6f4b7" %}
{% set osx_variant = os.environ.get('OSX_VARIANT', 'default') %}

package:
name: {{ name|lower }}
Expand All @@ -13,6 +14,14 @@ source:

build:
number: 1
{% if osx_variant != "native" %}
skip: True # [not osx]
{% endif %}

{% if osx_variant == "pocl" %}
features:
- osx_pocl_opencl
{% endif %}

requirements:
build:
Expand All @@ -23,6 +32,10 @@ requirements:
- ocl-icd # [linux]
- khronos-opencl-icd-loader # [win]
- mingwpy # [win]
{% if osx_variant == "pocl" %}
- osx-pocl-opencl
{% endif %}

run:
- python
- numpy
Expand All @@ -33,6 +46,9 @@ requirements:
- appdirs
- khronos-opencl-icd-loader # [win]
- ocl-icd # [linux]
{% if osx_variant == "pocl" %}
- osx-pocl-opencl
{% endif %}

test:
requires:
Expand Down

0 comments on commit 313a75c

Please sign in to comment.