{"id":13410873,"url":"https://github.com/flyx/OpenCLAda","last_synced_at":"2025-03-14T16:33:07.671Z","repository":{"id":140903976,"uuid":"2239843","full_name":"flyx/OpenCLAda","owner":"flyx","description":"An Ada binding for the OpenCL host API","archived":true,"fork":false,"pushed_at":"2013-11-14T21:15:48.000Z","size":452,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-07-31T20:44:15.035Z","etag":null,"topics":["ada","ada-binding","cl-gl","opencl"],"latest_commit_sha":null,"homepage":"http://flyx.github.io/OpenCLAda","language":"Ada","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flyx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-20T17:15:29.000Z","updated_at":"2023-01-27T22:40:08.000Z","dependencies_parsed_at":"2023-03-13T10:39:46.342Z","dependency_job_id":null,"html_url":"https://github.com/flyx/OpenCLAda","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyx%2FOpenCLAda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyx%2FOpenCLAda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyx%2FOpenCLAda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyx%2FOpenCLAda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyx","download_url":"https://codeload.github.com/flyx/OpenCLAda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243610516,"owners_count":20318973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ada","ada-binding","cl-gl","opencl"],"created_at":"2024-07-30T20:01:09.924Z","updated_at":"2025-03-14T16:33:07.416Z","avatar_url":"https://github.com/flyx.png","language":"Ada","funding_links":[],"categories":["Libraries"],"sub_categories":["General Purpose Computing"],"readme":"# OpenCLAda - An Ada binding for the OpenCL host API\n\n## About\nThis is OpenCLAda, a thick Ada binding for the OpenCL host API.\nThis binding enables you to write OpenCL hosts in Ada. It does **not**\nenable you to write OpenCL kernels in Ada.\n\n## Prerequisites\n\nOpenCLAda currently supports MacOSX, Linux and Windows. You need to have\n\n - a GNAT compiler\n - an OpenCL implementation\n - optionally OpenGLAda (if you want to use the cl_gl extension)\n\navailable on your system. GNAT GPL Edition is available at\n[the AdaCore website][7]. OpenCL is\nusually available from your hardware vendor. On MacOSX, it's already part of\nthe operating system. On Windows, you'll need an `OpenCL.lib` file to link\nagainst. This is usually not part of the OpenCL implementation, but can be\nacquired as part of an SDK from your hardware vendor (eg the\n[AMD APP SDK][6]).\n\n[OpenGLAda][8] is required for OpenCL's\ncl_gl extension. Just download its source and make sure the path to `opengl.gpr`\nis included in the `ADA_PROJECT_PATH` environment variable. To compile the tests,\nyou also need the [GLFW library][9] version 2, which is used\nfor window construction in the cl_gl tests.\n\n## Compilation\n\nOn MacOSX and Linux, open a terminal, navigate to the OpenCLAda directory and do:\n\n\t$ make\n\nOn Windows, it could work the same way if you're using MinGW or Cygwin.\nHowever, I didn't try either one. Anyway, to compile without make, just do\n\n\t$ gnatmake -p -Popencl-cl_gl.gpr -XWindowing_System=windows\n\n*Note: The variable __Windowing_System__ is shared with OpenGLAda. You have to\nprovide it even when compiling without OpenGL support because it defines the way\nOpenCLAda links with your system libraries.*\n\nOn Windows, the compiler needs to find the `OpenCL.lib` file mentioned above. If\nyou're unsure how to achieve this, just copy it into `C:\\GNAT\\[version]\\lib` or\nwherever you installed your GNAT compiler.\n\n*Note: The availability of an OpenCL implementation will not be tested when\nbuilding OpenCLAda. So if you want to make sure that OpenCL is available,\nbuild the tests and see if they are linked properly (see below).*\n\nIf you want to build OpenCLAda without the cl_gl extension, do\n\n   $ gprbuild -p -P opencl.gpr -XWindowing_System={windows|quartz|x11}\n\n*Note: The makefile does not support switching off cl_gl, because I'm lazy.*\n\n## Installation\n\nOpenCLAda is just a wrapper library and does not include an installation routine.\nYou can just add it to your project.\n\n## Tests\n\nOpenCLAda comes with some tests (or rather, examples). I wrote them to test\nsome of the basic functionality of the API. You can build them with\n\n\t$ make tests\n\nor\n\n\t$ gnatmake -p -P opencl_test.gpr -XGL_Backend={windows|quartz|x11}\n\t\nA basic \"hello world\" example is also included. After compilation,\nthe executables will be located in the `bin` directory. They can only be\nexecuted in the `bin` directory, as they load some OpenCL kernel files through\nrelative paths.\n\n## Usage\n\nThere is some\n[overview over the OpenCLAda API on the Wiki][1], which is outdated and will\nshortly replaced by a new documentation section on the [homepage][2].\nFor more information, please consult the [Khronos OpenCL API Registry][3].\n\n## Contributing\n\nYou're welcome to contribute code or file bug reports on the\n[project's page on GitHub][4].\n\n## License\n\nThis code is distributed under the terms of the [ISC License][5], which you can\nfind in the file `COPYING`.\n\n [1]: https://github.com/flyx/OpenCLAda/wiki/Overview\n [2]: http://flyx.github.io/OpenCLAda\n [3]: http://www.khronos.org/registry/cl/\n [4]: https://github.com/flyx/OpenCLAda\n [5]: http://opensource.org/licenses/ISC\n [6]: http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/\n [7]: http://libre.adacore.com/libre/download/\n [8]: https://flyx.github.io/OpenGLAda\n [9]: http://www.glfw.org/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyx%2FOpenCLAda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyx%2FOpenCLAda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyx%2FOpenCLAda/lists"}