aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@4054007a-4839-4648-a056-eb81e030d849>2011-09-12 16:56:06 +0000
committereschnett <eschnett@4054007a-4839-4648-a056-eb81e030d849>2011-09-12 16:56:06 +0000
commit70b7032f5463b2e0a9301f06141d3e918e10edda (patch)
tree7eefb3f6c3709a0710abde5f42bd2b3e738966a7
parent04e225bb01317c6a1b5b2c33f19dfda76909ca94 (diff)
Import thorn
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/OpenCL/trunk@2 4054007a-4839-4648-a056-eb81e030d849
-rw-r--r--OpenCL.sh39
-rw-r--r--README23
-rw-r--r--configuration.ccl8
-rw-r--r--doc/documentation.tex144
-rw-r--r--interface.ccl3
-rw-r--r--param.ccl1
-rw-r--r--schedule.ccl1
-rw-r--r--src/make.code.defn7
8 files changed, 226 insertions, 0 deletions
diff --git a/OpenCL.sh b/OpenCL.sh
new file mode 100644
index 0000000..81e24d7
--- /dev/null
+++ b/OpenCL.sh
@@ -0,0 +1,39 @@
+#! /bin/bash
+
+################################################################################
+# Prepare
+################################################################################
+
+# Set up shell
+set -x # Output commands
+set -e # Abort on errors
+
+
+
+################################################################################
+# Configure Cactus
+################################################################################
+
+if [ -z "${OPENCL_DIR}" ]; then
+ echo "BEGIN ERROR"
+ echo "OpenCL selected, but OPENCL_DIR not set."
+ echo "END ERROR"
+fi
+
+# Set options
+
+: ${OPENCL_INC_DIRS:=${OPENCL_DIR}/include}
+: ${OPENCL_LIB_DIRS:=${OPENCL_DIR}/lib}
+: ${OPENCL_LIBS:=OpenCL}
+
+echo "BEGIN MAKE_DEFINITION"
+echo "HAVE_OPENCL = 1"
+echo "OPENCL_DIR = ${OPENCL_DIR}"
+echo "OPENCL_INC_DIRS = ${OPENCL_INC_DIRS}"
+echo "OPENCL_LIB_DIRS = ${OPENCL_LIB_DIRS}"
+echo "OPENCL_LIBS = ${OPENCL_LIBS}"
+echo "END MAKE_DEFINITION"
+
+echo 'INCLUDE_DIRECTORY $(OPENCL_INC_DIRS)'
+echo 'LIBRARY_DIRECTORY $(OPENCL_LIB_DIRS)'
+echo 'LIBRARY $(OPENCL_LIBS)'
diff --git a/README b/README
new file mode 100644
index 0000000..ab5c000
--- /dev/null
+++ b/README
@@ -0,0 +1,23 @@
+Cactus Code Thorn OpenCL
+Author(s) : Erik Schnetter
+Maintainer(s): Cactus team
+Licence : GPL
+--------------------------------------------------------------------------
+
+1. Purpose
+
+Configure with OpenCL; see <http://www.khronos.org/opencl/>.
+
+
+
+From the web site:
+
+OpenCL - The open standard for parallel programming of heterogeneous
+systems
+
+OpenCL(TM) is the first open, royalty-free standard for
+cross-platform, parallel programming of modern processors found in
+personal computers, servers and handheld/embedded devices. OpenCL
+(Open Computing Language) greatly improves speed and responsiveness
+for a wide spectrum of applications in numerous market categories from
+gaming and entertainment to scientific and medical software.
diff --git a/configuration.ccl b/configuration.ccl
new file mode 100644
index 0000000..687b265
--- /dev/null
+++ b/configuration.ccl
@@ -0,0 +1,8 @@
+# Configuration definitions for thorn OpenCL
+
+PROVIDES OpenCL
+{
+ SCRIPT OpenCL.sh
+ LANG bash
+ OPTIONS OPENCL_DIR OPENCL_INC_DIRS OPENCL_LIB_DIRS OPENCL_LIBS
+}
diff --git a/doc/documentation.tex b/doc/documentation.tex
new file mode 100644
index 0000000..0aa74f1
--- /dev/null
+++ b/doc/documentation.tex
@@ -0,0 +1,144 @@
+% *======================================================================*
+% Cactus Thorn template for ThornGuide documentation
+% Author: Ian Kelley
+% Date: Sun Jun 02, 2002
+% $Header$
+%
+% Thorn documentation in the latex file doc/documentation.tex
+% will be included in ThornGuides built with the Cactus make system.
+% The scripts employed by the make system automatically include
+% pages about variables, parameters and scheduling parsed from the
+% relevant thorn CCL files.
+%
+% This template contains guidelines which help to assure that your
+% documentation will be correctly added to ThornGuides. More
+% information is available in the Cactus UsersGuide.
+%
+% Guidelines:
+% - Do not change anything before the line
+% % START CACTUS THORNGUIDE",
+% except for filling in the title, author, date, etc. fields.
+% - Each of these fields should only be on ONE line.
+% - Author names should be separated with a \\ or a comma.
+% - You can define your own macros, but they must appear after
+% the START CACTUS THORNGUIDE line, and must not redefine standard
+% latex commands.
+% - To avoid name clashes with other thorns, 'labels', 'citations',
+% 'references', and 'image' names should conform to the following
+% convention:
+% ARRANGEMENT_THORN_LABEL
+% For example, an image wave.eps in the arrangement CactusWave and
+% thorn WaveToyC should be renamed to CactusWave_WaveToyC_wave.eps
+% - Graphics should only be included using the graphicx package.
+% More specifically, with the "\includegraphics" command. Do
+% not specify any graphic file extensions in your .tex file. This
+% will allow us to create a PDF version of the ThornGuide
+% via pdflatex.
+% - References should be included with the latex "\bibitem" command.
+% - Use \begin{abstract}...\end{abstract} instead of \abstract{...}
+% - Do not use \appendix, instead include any appendices you need as
+% standard sections.
+% - For the benefit of our Perl scripts, and for future extensions,
+% please use simple latex.
+%
+% *======================================================================*
+%
+% Example of including a graphic image:
+% \begin{figure}[ht]
+% \begin{center}
+% \includegraphics[width=6cm]{MyArrangement_MyThorn_MyFigure}
+% \end{center}
+% \caption{Illustration of this and that}
+% \label{MyArrangement_MyThorn_MyLabel}
+% \end{figure}
+%
+% Example of using a label:
+% \label{MyArrangement_MyThorn_MyLabel}
+%
+% Example of a citation:
+% \cite{MyArrangement_MyThorn_Author99}
+%
+% Example of including a reference
+% \bibitem{MyArrangement_MyThorn_Author99}
+% {J. Author, {\em The Title of the Book, Journal, or periodical}, 1 (1999),
+% 1--16. {\tt http://www.nowhere.com/}}
+%
+% *======================================================================*
+
+% If you are using CVS use this line to give version information
+% $Header$
+
+\documentclass{article}
+
+% Use the Cactus ThornGuide style file
+% (Automatically used from Cactus distribution, if you have a
+% thorn without the Cactus Flesh download this from the Cactus
+% homepage at www.cactuscode.org)
+\usepackage{../../../../doc/latex/cactus}
+
+\begin{document}
+
+% The author of the documentation
+\author{Erik Schnetter \textless eschnetter@perimeterinstitute.ca\textgreater}
+
+% The title of the document (not necessarily the name of the Thorn)
+\title{OpenCL}
+
+% the date your document was last changed, if your document is in CVS,
+% please use:
+% \date{$ $Date: 2004-01-07 14:12:39 -0600 (Wed, 07 Jan 2004) $ $}
+\date{July 11 2011}
+
+\maketitle
+
+% Do not delete next line
+% START CACTUS THORNGUIDE
+
+% Add all definitions used in this documentation here
+% \def\mydef etc
+
+% Add an abstract for this thorn's documentation
+\begin{abstract}
+
+\end{abstract}
+
+% The following sections are suggestive only.
+% Remove them or add your own.
+
+\section{Introduction}
+
+\section{Physical System}
+
+\section{Numerical Implementation}
+
+\section{Using This Thorn}
+
+\subsection{Obtaining This Thorn}
+
+\subsection{Basic Usage}
+
+\subsection{Special Behaviour}
+
+\subsection{Interaction With Other Thorns}
+
+\subsection{Examples}
+
+\subsection{Support and Feedback}
+
+\section{History}
+
+\subsection{Thorn Source Code}
+
+\subsection{Thorn Documentation}
+
+\subsection{Acknowledgements}
+
+
+\begin{thebibliography}{9}
+
+\end{thebibliography}
+
+% Do not delete next line
+% END CACTUS THORNGUIDE
+
+\end{document}
diff --git a/interface.ccl b/interface.ccl
new file mode 100644
index 0000000..2139ac7
--- /dev/null
+++ b/interface.ccl
@@ -0,0 +1,3 @@
+# Interface definition for thorn OpenCL
+
+IMPLEMENTS: OpenCL
diff --git a/param.ccl b/param.ccl
new file mode 100644
index 0000000..6093f34
--- /dev/null
+++ b/param.ccl
@@ -0,0 +1 @@
+# Parameter definitions for thorn OpenCL
diff --git a/schedule.ccl b/schedule.ccl
new file mode 100644
index 0000000..eabefe1
--- /dev/null
+++ b/schedule.ccl
@@ -0,0 +1 @@
+# Schedule definitions for thorn OpenCL
diff --git a/src/make.code.defn b/src/make.code.defn
new file mode 100644
index 0000000..7e723a4
--- /dev/null
+++ b/src/make.code.defn
@@ -0,0 +1,7 @@
+# Main make.code.defn file for thorn OpenCL
+
+# Source files in this directory
+SRCS =
+
+# Subdirectories containing source files
+SUBDIRS =