GithubHelp home page GithubHelp logo

opencl-compile-kit's Introduction

!! To compile the [OpenCL-Dll]/[OpenCL-so] USE A VIRTUALMASCHINE you will need a laboratory environment!!

03/04/2020

> git clone --recursive https://github.com/facebamm/OpenCl-Compile-Kit.git

Install - Only windows user

Open the software folder or download the software below

  1. run git install
  2. run vs_BuildTools install
    2.1. Select "C++ build tools"
    2.2. install
  3. run wdk install

Under the documents create new folder named "OpenCL", move into it.
Click into the space of that folder and then hold shift and press right-mouse.
Now hit the "Open PowerShell window here" menu-item.

Build and Compile

Powershell(Windows)

> git clone --recursive https://github.com/facebamm/OpenCl-Compile-Kit.git

Setup the ICD-Loader

> mkdir .\OpenCL-ICD-Loader\inc\CL
> mkdir .\OpenCL-ICD-Loader\build 
> Copy-Item OpenCL-Headers/CL/* -Destination OpenCL-ICD-Loader/inc/CL -Recurse
> exit

now open "Developer Command Prompt for VS 2019"

Developer Command Prompt for VS 2019 / Compile
> cd path/to/OpenCL-ICD-Loader/build

e.g.: cd C:\[...]\[OpenCL]\OpenCL-ICD-Loader\build

> cmake ..
> msbuild OPENCL_ICD_LOADER.sln /p:Configuration=Release

You will find the dll inside the build folder in Release folder :D

Terminal(Linux)

Dowload the repositories

> git clone --recursive https://github.com/facebamm/OpenCl-Compile-Kit.git

Setup the ICD-Loader

> mkdir OpenCL-ICD-Loader/inc/CL
> mkdir OpenCL-ICD-Loader/build 
> cp -r OpenCL-Headers/CL/* OpenCL-ICD-Loader/inc/CL
Compile
> cd OpenCL-ICD-Loader/build
> cmake -DCMAKE_BUILD_TYPE=Release ..   
> make

You will find the so files inside the build folder :D

Version

to change the version you have only to replace the headerfiles inside the OpenCL-Headers/CL/ folder

Extra

cmake -A x64 .. -> AMD64
cmake -A x32 .. -> AMD32

Pages and Downloads

Git

https://git-scm.com - Page
https://git-scm.com/download/win - Download

Build Tools For Visual Studio 2019

https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017 - Page
https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16 - Download

Windows Development Kit (WDK)

https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk - Page
https://go.microsoft.com/fwlink/?linkid=2085767 - Download

opencl-compile-kit's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.