https://github.com/crystal-data/opencl.cr
High-level OpenCL bindings for Crystal
https://github.com/crystal-data/opencl.cr
Last synced: 11 months ago
JSON representation
High-level OpenCL bindings for Crystal
- Host: GitHub
- URL: https://github.com/crystal-data/opencl.cr
- Owner: crystal-data
- License: mit
- Created: 2020-02-17T23:03:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-30T13:38:54.000Z (about 6 years ago)
- Last Synced: 2025-06-28T02:43:05.843Z (about 1 year ago)
- Language: Crystal
- Size: 34.2 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opencl.cr
This library is primarily maintained to provide necessary utilites to the
`num.cr` numerical library, so not all features may be covered. This library
should however cover all basic use cases, as well as provide a lower level ability
to implement more advanced use cases. Feel free to submit PR's to add functionality
## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
opencl:
github: crystal-data/opencl.cr
```
2. Run `shards install`
## Usage
```crystal
require "opencl"
device, context, queue = Cl.single_device_defaults
puts Cl.device_name(device)
```
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [Chris Zimmerman](https://github.com/christopherzimmerman) - creator and maintainer