https://github.com/vmchale/ats-stats
Demonstration of GPU-accelerated statistical functions in ATS
https://github.com/vmchale/ats-stats
ats futhark gpu-acceleration gpu-computing statistics
Last synced: 3 months ago
JSON representation
Demonstration of GPU-accelerated statistical functions in ATS
- Host: GitHub
- URL: https://github.com/vmchale/ats-stats
- Owner: vmchale
- License: bsd-3-clause
- Created: 2020-02-07T01:41:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-11T00:24:38.000Z (about 5 years ago)
- Last Synced: 2025-10-22T07:09:58.676Z (7 months ago)
- Topics: ats, futhark, gpu-acceleration, gpu-computing, statistics
- Language: ATS
- Size: 45.9 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ats-stats
This is a demonstration of calling [Futhark](https://futhark-lang.org/) from
[ATS](http://www.ats-lang.org/). We use it to provide statistical functions in
ATS.
## Building
First, get [futhark](http://hackage.haskell.org/package/futhark) and
[ATS](http://www.ats-lang.org/Downloads.html#ATS_packages). Make sure you have OpenCL.
To run:
```
futhark pkg sync
make
LD_LIBRARY_PATH=target/lib ./target/spec
```
### Shake
For slightly better dependency tracking:
```
futhark pkg sync
./Shakefile.hs run
```
## Use
Find an example showing how to compute the mean of an array
[here](https://github.com/vmchale/ats-stats/blob/master/test/spec.dats).