All Projects → flyx → OpenCLAda

flyx / OpenCLAda

Licence: ISC license
An Ada binding for the OpenCL host API

Programming Languages

Ada
118 projects
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to OpenCLAda

Primitiv
A Neural Network Toolkit.
Stars: ✭ 164 (+993.33%)
Mutual labels:  opencl
Primestereomatch
A heterogeneous and fully parallel stereo matching algorithm for depth estimation, implementing a local adaptive support weight (ADSW) Guided Image Filter (GIF) cost aggregation stage. Developed in both C++ and OpenCL.
Stars: ✭ 191 (+1173.33%)
Mutual labels:  opencl
Bohrium
Automatic parallelization of Python/NumPy, C, and C++ codes on Linux and MacOSX
Stars: ✭ 209 (+1293.33%)
Mutual labels:  opencl
Gpu performance api
GPU Performance API for AMD GPUs
Stars: ✭ 170 (+1033.33%)
Mutual labels:  opencl
Opencl Intercept Layer
Intercept Layer for Debugging and Analyzing OpenCL Applications
Stars: ✭ 189 (+1160%)
Mutual labels:  opencl
Inviwo
Inviwo - Interactive Visualization Workshop
Stars: ✭ 199 (+1226.67%)
Mutual labels:  opencl
Khiva
An open-source library of algorithms to analyse time series in GPU and CPU.
Stars: ✭ 161 (+973.33%)
Mutual labels:  opencl
Occa
JIT Compilation for Multiple Architectures: C++, OpenMP, CUDA, HIP, OpenCL, Metal
Stars: ✭ 230 (+1433.33%)
Mutual labels:  opencl
Compute.scala
Scientific computing with N-dimensional arrays
Stars: ✭ 191 (+1173.33%)
Mutual labels:  opencl
Cuetools.net
CD image processing suite with optimized lossless encoders in C#
Stars: ✭ 208 (+1286.67%)
Mutual labels:  opencl
Opentk
The Open Toolkit library is a fast, low-level C# wrapper for OpenGL, OpenAL & OpenCL. It also includes windowing, mouse, keyboard and joystick input and a robust and fast math library, giving you everything you need to write your own renderer or game engine. OpenTK can be used standalone or inside a GUI on Windows, Linux, Mac.
Stars: ✭ 2,284 (+15126.67%)
Mutual labels:  opencl
Clinfo
Print all known information about all available OpenCL platforms and devices in the system
Stars: ✭ 186 (+1140%)
Mutual labels:  opencl
Pine
🌲 Aimbot powered by real-time object detection with neural networks, GPU accelerated with Nvidia. Optimized for use with CS:GO.
Stars: ✭ 202 (+1246.67%)
Mutual labels:  opencl
Floor
A C++ Compute/Graphics Library and Toolchain enabling same-source CUDA/Host/Metal/OpenCL/Vulkan C++ programming and execution.
Stars: ✭ 166 (+1006.67%)
Mutual labels:  opencl
Opencl.jl
OpenCL Julia bindings
Stars: ✭ 216 (+1340%)
Mutual labels:  opencl
Computelibrary
The Compute Library is a set of computer vision and machine learning functions optimised for both Arm CPUs and GPUs using SIMD technologies.
Stars: ✭ 2,123 (+14053.33%)
Mutual labels:  opencl
Ck Caffe
Collective Knowledge workflow for Caffe to automate installation across diverse platforms and to collaboratively evaluate and optimize Caffe-based workloads across diverse hardware, software and data sets (compilers, libraries, tools, models, inputs):
Stars: ✭ 192 (+1180%)
Mutual labels:  opencl
Computecpp Sdk
Collection of samples and utilities for using ComputeCpp, Codeplay's SYCL implementation
Stars: ✭ 239 (+1493.33%)
Mutual labels:  opencl
Pysph
A framework for Smoothed Particle Hydrodynamics in Python
Stars: ✭ 223 (+1386.67%)
Mutual labels:  opencl
Onednn
oneAPI Deep Neural Network Library (oneDNN)
Stars: ✭ 2,600 (+17233.33%)
Mutual labels:  opencl

OpenCLAda - An Ada binding for the OpenCL host API

About

This is OpenCLAda, a thick Ada binding for the OpenCL host API. This binding enables you to write OpenCL hosts in Ada. It does not enable you to write OpenCL kernels in Ada.

Prerequisites

OpenCLAda currently supports MacOSX, Linux and Windows. You need to have

  • a GNAT compiler
  • an OpenCL implementation
  • optionally OpenGLAda (if you want to use the cl_gl extension)

available on your system. GNAT GPL Edition is available at the AdaCore website. OpenCL is usually available from your hardware vendor. On MacOSX, it's already part of the operating system. On Windows, you'll need an OpenCL.lib file to link against. This is usually not part of the OpenCL implementation, but can be acquired as part of an SDK from your hardware vendor (eg the AMD APP SDK).

OpenGLAda is required for OpenCL's cl_gl extension. Just download its source and make sure the path to opengl.gpr is included in the ADA_PROJECT_PATH environment variable. To compile the tests, you also need the GLFW library version 2, which is used for window construction in the cl_gl tests.

Compilation

On MacOSX and Linux, open a terminal, navigate to the OpenCLAda directory and do:

$ make

On Windows, it could work the same way if you're using MinGW or Cygwin. However, I didn't try either one. Anyway, to compile without make, just do

$ gnatmake -p -Popencl-cl_gl.gpr -XWindowing_System=windows

Note: The variable Windowing_System is shared with OpenGLAda. You have to provide it even when compiling without OpenGL support because it defines the way OpenCLAda links with your system libraries.

On Windows, the compiler needs to find the OpenCL.lib file mentioned above. If you're unsure how to achieve this, just copy it into C:\GNAT\[version]\lib or wherever you installed your GNAT compiler.

Note: The availability of an OpenCL implementation will not be tested when building OpenCLAda. So if you want to make sure that OpenCL is available, build the tests and see if they are linked properly (see below).

If you want to build OpenCLAda without the cl_gl extension, do

$ gprbuild -p -P opencl.gpr -XWindowing_System={windows|quartz|x11}

Note: The makefile does not support switching off cl_gl, because I'm lazy.

Installation

OpenCLAda is just a wrapper library and does not include an installation routine. You can just add it to your project.

Tests

OpenCLAda comes with some tests (or rather, examples). I wrote them to test some of the basic functionality of the API. You can build them with

$ make tests

or

$ gnatmake -p -P opencl_test.gpr -XGL_Backend={windows|quartz|x11}

A basic "hello world" example is also included. After compilation, the executables will be located in the bin directory. They can only be executed in the bin directory, as they load some OpenCL kernel files through relative paths.

Usage

There is some overview over the OpenCLAda API on the Wiki, which is outdated and will shortly replaced by a new documentation section on the homepage. For more information, please consult the Khronos OpenCL API Registry.

Contributing

You're welcome to contribute code or file bug reports on the project's page on GitHub.

License

This code is distributed under the terms of the ISC License, which you can find in the file COPYING.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].