Skip to content

Commit

Permalink
#174 add Fortran OpenCLn utility code
Browse files Browse the repository at this point in the history
  • Loading branch information
arporter committed Jun 15, 2018
1 parent b540c75 commit c998f56
Show file tree
Hide file tree
Showing 6 changed files with 2,546 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/opencl/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Makefile for OpenCL utility modules
OBJECTS = clfortran.o ocl_params_mod.o ocl_utils_mod.o ocl_env_mod.o

all: ${OBJECTS}

%.o: %.f90
${F90} ${F90FLAGS} -c $<

clean:
rm -f *.o
rm -f *~

allclean: clean
rm -f *.mod *.MOD
11 changes: 11 additions & 0 deletions lib/opencl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Introduction #

This directory contains Fortran source code that wraps the OpenCL
functionality required by PSyclone when generating code that
targets an OpenCL device. It uses the "clFortran" interface code
available from https://github.com/cass-support/clfortran.

# Compiling #

The Makefile picks-up the compiler, flags etc. from environment
variables. You will need to set F90 (and optionally, F90FLAGS).
Loading

0 comments on commit c998f56

Please sign in to comment.