CLBlast/.appveyor.yml

50 lines
1.6 KiB
YAML
Raw Normal View History

2016-06-27 12:47:39 +02:00
environment:
global:
CLBLAST_ROOT: "%APPVEYOR_BUILD_FOLDER%\\bin\\clblast"
OPENCL_REGISTRY: "https://www.khronos.org/registry/cl"
OPENCL_ROOT: "%APPVEYOR_BUILD_FOLDER%\\bin\\opencl"
platform:
- x64
init:
- cmake --version
- C:\"Program Files (x86)"\"Microsoft Visual Studio 14.0"\VC\vcvarsall.bat %PLATFORM%
2016-06-27 12:47:39 +02:00
# Creates an OpenCL library to link against. Taken from clMathLibraries/clBLAS
install:
- ps: mkdir $env:OPENCL_ROOT
- ps: pushd $env:OPENCL_ROOT
- ps: $opencl_registry = $env:OPENCL_REGISTRY
2016-06-27 13:55:16 +02:00
# This downloads the source to the Khronos ICD library
- git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git
- ps: mv ./OpenCL-ICD-Loader/* .
2016-06-27 12:47:39 +02:00
# This downloads all the opencl header files
# The cmake build files expect a directory called inc
- ps: mkdir inc/CL
2016-06-27 13:55:16 +02:00
- git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL
- ps: wget $opencl_registry/api/2.1/cl.hpp -OutFile inc/CL/cl.hpp
2016-06-27 12:47:39 +02:00
# - ps: dir; if( $lastexitcode -eq 0 ){ dir include/CL } else { Write-Output boom }
# Create the static import lib in a directory called lib, so findopencl() will find it
- ps: mkdir lib
- ps: pushd lib
- cmake -G "NMake Makefiles" ..
- nmake
- ps: popd
2016-06-27 13:55:16 +02:00
# Switch to OpenCL 1.2 headers
- ps: pushd inc/CL
- git fetch origin opencl12:opencl12
- git checkout opencl12
- ps: popd
2016-06-27 12:47:39 +02:00
# Rename the inc directory to include, so FindOpencl() will find it
- ps: ren inc include
- ps: popd
before_build:
- ps: mkdir $env:CLBLAST_ROOT
- ps: pushd $env:CLBLAST_ROOT
- cmake -G"Visual Studio 14 Win64" -DTESTS=ON -DCLIENTS=ON %APPVEYOR_BUILD_FOLDER%
build_script:
- cmake --build .