README 1.91 KB
Newer Older
1
2
3
4
5
targetDP
========

Copyright 2015 The University of Edinburgh

Jacob Finkenrath's avatar
Jacob Finkenrath committed
6
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
7
8
9

http://www.apache.org/licenses/LICENSE-2.0

Jacob Finkenrath's avatar
Jacob Finkenrath committed
10
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
11
12
13
14

About
----------

Jacob Finkenrath's avatar
Jacob Finkenrath committed
15
targetDP (target Data Parallel) is a lightweight programming abstraction layer, designed to allow the same application source code to be able to target multiple architectures, e.g. NVIDIA GPUs and multicore/manycore CPUs, in a performance portable manner.
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

See:

 Alan Gray and Kevin Stratford. “targetDP: an Abstraction of Lattice
 Based Parallelism with Portable Performance”. In: Proceedings of 2014
 IEEE International Conference on High Performance Computing and
 Communications (HPCC) (2014), pp. 312–315. doi:
 10.1109/HPCC.2014.212, http://arxiv.org/abs/1405.6162


Obtaining
----------

To obtain a copy of targetDP:
svn checkout http://ccpforge.cse.rl.ac.uk/svn/ludwig/trunk/targetDP

Note that this is the latest development version, and is subject to change.


Compiling the targetDP libraries
---------- 

to create the library libtarget.a:

Jacob Finkenrath's avatar
Jacob Finkenrath committed
40
Edit the Makefile to set CC to the desired compiler (and CFLAGS to the desired compiler flags). Then type 
41

Jacob Finkenrath's avatar
Jacob Finkenrath committed
42
```
43
make
Jacob Finkenrath's avatar
Jacob Finkenrath committed
44
```
45
46
47
48
49
50
51
52
53
54
55
56
57
58

If CC is a standard C/C++ compiler, then the CPU version of targetDP.a
will be created. If CC=nvcc, then the GPU version will be created.


Documentation/Specification
----------

See targetDPspec.pdf in the doc directory, and the example (below).


Example
----------

Jacob Finkenrath's avatar
Jacob Finkenrath committed
59
See simpleExample.c (which has compilation instructions for CPU and GPU near the top of the file).
60
61