https://github.com/dernasherbrezon/rpi-fma
Test FMA on RaspberryPI CPU&GPU
https://github.com/dernasherbrezon/rpi-fma
fma gpu gpu-computing opencl raspberrypi
Last synced: 3 months ago
JSON representation
Test FMA on RaspberryPI CPU&GPU
- Host: GitHub
- URL: https://github.com/dernasherbrezon/rpi-fma
- Owner: dernasherbrezon
- License: apache-2.0
- Created: 2021-10-16T10:00:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-16T10:23:08.000Z (over 3 years ago)
- Last Synced: 2025-01-14T15:42:19.267Z (5 months ago)
- Topics: fma, gpu, gpu-computing, opencl, raspberrypi
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
This small project tests [FMA](https://en.wikipedia.org/wiki/Multiply–accumulate_operation#Fused_multiply–add) support on RaspberryPI 3 CPU and GPU. It computes the following:
```C
1.0000001F * 1.0000001F - 1.0000002F
```# Results
Test name
Result
VMUL + VADD
0
VFMA
1.42108547e-14
VMLA
0
GPU: FMUL + FADD
0
# Dependencies
* [VC4CL](https://github.com/doe300/VC4CL)
# Build
```bash
mkdir build
cd build
cmake ..
make
```# Run
```bash
./rpi_fma
```