https://github.com/arrayfire/arrayfire-fortran
Fortran wrapper for ArrayFire
https://github.com/arrayfire/arrayfire-fortran
Last synced: 14 days ago
JSON representation
Fortran wrapper for ArrayFire
- Host: GitHub
- URL: https://github.com/arrayfire/arrayfire-fortran
- Owner: arrayfire
- License: bsd-3-clause
- Created: 2014-02-28T21:13:16.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-08-15T14:16:15.000Z (over 9 years ago)
- Last Synced: 2026-01-14T14:05:55.429Z (27 days ago)
- Language: FORTRAN
- Size: 32.2 KB
- Stars: 24
- Watchers: 8
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
arrayfire-fortran
=================
This project provides Fotran bindings for ArrayFire.
Prerequisites
---------------
- The latest version of ArrayFire. You can get ArrayFire in the following ways.
- [Binary Installer](http://www.arrayfire.com/download)
- [Install from source](http://github.com/arrayfire/arrayfire)
- `gfortran`
- `make`
Contents
---------------
- `src/`: Contains the source files for the ArrayFire Fortran wrapper
- `fortran_wrapper.cpp` The C++ part of the wrapper
- `arrayfire.f90` The fortran part of the wrapper
- `lib/` The location where the wrapper library and the fortran module are stored.
- `examples`: contains a few examples demonstrating the usage
Usage
----------------
After you the necessary pre-requisites, edit the following paramets in `common.mk`
- Change `AF_PATH` to the right location
- Change `AF_LIB_NAME` to point to the right backend.
### Linux
- To build the Fortran Wrapper for ArrayFire run
- `make all`(generates `libaf_fortran.so`)
- To build the examples do one of the following from the examples directory
- `make -C examples` (generates `examplename` in `bin` directory)
Documentation
---------------
- Work under progress
License
---------------
This project is licensed under BSD 3 clause license.
Please check the LICENSE file in the root directory for more information.