Skip to content

Commit c98c0a0

Browse files
Third PartypsychocoderHPC
authored andcommitted
Squashed 'thirdParty/cupla/' changes from 73fb269..a96b293
a96b293 Merge pull request ComputationalRadiationPhysics#106 from fwyzard/cupla_accelerator_namespace 1af2b2b Merge pull request ComputationalRadiationPhysics#110 from tdd11235813/cmake-macro 663521c Changes function to macro 'CUPLA_ADD_EXECUTABLE'. a440a7c Fix namespace definition if two accelerators are selected 64f02bb Move all accelerator-specific code to an inline namespece bbef699 Merge pull request ComputationalRadiationPhysics#105 from fwyzard/tbb_IsThreadSeqAcc b463a25 Mark the TBB backend as "thread sequential" b45d4e9 Merge pull request ComputationalRadiationPhysics#102 from psychocoderHPC/topic-updateToLatestAlapkaDev 7e8b832 createTaskExec -> createTaskKernel 84b6dc1 update to latest alapka develop branch 037f7b2 Merge pull request ComputationalRadiationPhysics#100 from DerWaldschrat/dev 7add5ed fix -Wreorder in cuplaPitchedPtr (#4) 9fa745b Merge pull request ComputationalRadiationPhysics#99 from ax3l/topic-cmake312rootHints 041d454 Merge pull request ComputationalRadiationPhysics#98 from DerWaldschrat/dev-fix ecc5839 CMake: Honor _ROOT Env Hints 24d159a Added conditional check for backends. 5822555 Add cudaEventBlockingSync to event creation 906cd41 Merge pull request ComputationalRadiationPhysics#97 from psychocoderHPC/topic-HIPBackend bc67259 alpaka backend: HIP 87fe58d Merge pull request ComputationalRadiationPhysics#96 from psychocoderHPC/fix-kernelSharedMemCalc 68877b5 fix dynamic shared mem definition 9452a70 Merge pull request ComputationalRadiationPhysics#95 from psychocoderHPC/topic-updateDocs 8b26918 update docs e822bfa Merge pull request ComputationalRadiationPhysics#89 from psychocoderHPC/topic-switchToAlpakaDevelop0.4.X 50cedbc alpaka renamings + cmake version incerase 5ecd227 update to alapka dev upcoming version 0.4.X 66a9240 Merge pull request ComputationalRadiationPhysics#94 from psychocoderHPC/topic-ciUpdateToCUDA8 3ba6104 CI: update CUDA from 7.5 to 8.0 5af56ce Merge pull request ComputationalRadiationPhysics#93 from psychocoderHPC/topic-updateCIToClang4 68a6555 Travis: CUDA Compiler Ignore 279bfd0 Travis: Xenial 9d583b7 CI: switch from clan 3.5 to 4.0 11eb874 Merge pull request ComputationalRadiationPhysics#92 from ax3l/topic-ciCMake3110 da617da Travis: CMake 3.11.0 da63524 Merge pull request ComputationalRadiationPhysics#91 from ComputationalRadiationPhysics/dev 66a2da7 Merge pull request ComputationalRadiationPhysics#88 from psychocoderHPC/topic-versionIncreaseTo0.1.1 e029584 version increase to 0.1.1 ffdb268 Merge pull request ComputationalRadiationPhysics#90 from psychocoderHPC/fix-tbbSelection 06030af fix TBB backend activation aa8a921 Merge pull request ComputationalRadiationPhysics#84 from psychocoderHPC/topic-cuplaGetErrorString 55c99b7 add implementation for `cuplaGetErrorString` c765052 Merge pull request ComputationalRadiationPhysics#86 from psychocoderHPC/topic-cuplaPeekAtLastError 49612bb Merge pull request ComputationalRadiationPhysics#87 from psychocoderHPC/topic-helpUpdatecuplaGetLastError c763de4 Merge pull request ComputationalRadiationPhysics#85 from psychocoderHPC/topic-cuplaStreamQuerySupport 5d19923 update documentation of `cuplaGetLastError` 3806b8f implement `cuplaPeekAtLastError()` 2e79816 add `cuplaStreamQuery()` 7c73dc8 Merge pull request ComputationalRadiationPhysics#83 from psychocoderHPC/fix-cuplaGetLastError b02299a fix `cuplaGetLastError` 1b7d7ea Merge pull request ComputationalRadiationPhysics#81 from tdd11235813/master b0adfd9 Updates alpaka to 0.3.5. git-subtree-dir: thirdParty/cupla git-subtree-split: a96b293dcb14662a57901b55dfedaa1cd615adc9
1 parent 12dfb14 commit c98c0a0

47 files changed

Lines changed: 567 additions & 155 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "alpaka"]
22
path = alpaka
33
url = git://github.com/ComputationalRadiationPhysics/alpaka.git
4-
branch = tags/0.3.1
4+
branch = develop

.travis.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: cpp
22
sudo: false
3+
dist: xenial
34

45
cache:
56
apt: true
@@ -12,10 +13,9 @@ addons:
1213
apt:
1314
sources:
1415
- ubuntu-toolchain-r-test
15-
- llvm-toolchain-precise-3.5
1616
packages:
1717
- g++-4.9
18-
- clang-3.5
18+
- clang-4.0
1919

2020
env:
2121
global:
@@ -46,9 +46,9 @@ before_install:
4646
export CC=gcc-4.9;
4747
unset CUDA_ROOT;
4848
elif [ "$COMPILER" == "clang" ]; then
49-
echo "Using clang++-3.5 & sequential threads ...";
50-
export CXX=clang++-3.5;
51-
export CC=clang-3.5;
49+
echo "Using clang++-4.0 & sequential threads ...";
50+
export CXX=clang++-4.0;
51+
export CC=clang-4.0;
5252
unset CUDA_ROOT;
5353
elif [ "$COMPILER" == "nvcc" ]; then
5454
echo "Using CUDA 7.5 ...";
@@ -66,15 +66,15 @@ install:
6666
# CMAKE #
6767
#############################################################################
6868
- export PATH=$CMAKE_ROOT/bin:$PATH
69-
- CMAKE_39_FOUND=$(cmake --version | grep " 3\.9\." >/dev/null && { echo 0; } || { echo 1; })
70-
- if [ $CMAKE_39_FOUND -ne 0 ]; then
69+
- CMAKE_311_FOUND=$(cmake --version | grep " 3\.11\." >/dev/null && { echo 0; } || { echo 1; })
70+
- if [ $CMAKE_311_FOUND -ne 0 ]; then
7171
mkdir -p $CMAKE_ROOT &&
7272
cd $CMAKE_ROOT &&
7373
rm -rf $CMAKE_ROOT/* &&
74-
travis_retry wget --no-check-certificate http://cmake.org/files/v3.9/cmake-3.9.4-Linux-x86_64.tar.gz &&
75-
tar -xzf cmake-3.9.4-Linux-x86_64.tar.gz &&
76-
mv cmake-3.9.4-Linux-x86_64/* . &&
77-
rm -rf cmake-3.9.4-Linux-x86_64.tar.gz cmake-3.9.4-Linux-x86_64 &&
74+
travis_retry wget --no-check-certificate http://cmake.org/files/v3.11/cmake-3.11.0-Linux-x86_64.tar.gz &&
75+
tar -xzf cmake-3.11.0-Linux-x86_64.tar.gz &&
76+
mv cmake-3.11.0-Linux-x86_64/* . &&
77+
rm -rf cmake-3.11.0-Linux-x86_64.tar.gz cmake-3.11.0-Linux-x86_64 &&
7878
cd -;
7979
fi
8080
- cmake --version
@@ -106,10 +106,10 @@ install:
106106
- if [ $NVCC_FOUND -ne 0 ] && [ $COMPILER == "nvcc" ]; then
107107
mkdir -p $CUDA_ROOT &&
108108
cd $CUDA_ROOT &&
109-
travis_retry wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_7.5.18_linux.run &&
110-
chmod u+x *.run &&
111-
./cuda_7.5.18_linux.run --silent --verbose --toolkit --toolkitpath=$CUDA_ROOT &&
112-
rm -rf cuda_7.5.18_linux.run $CUDA_ROOT/{samples,jre,doc,share} &&
109+
travis_retry wget https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda_8.0.44_linux-run &&
110+
chmod u+x ./cuda_8.0.44_linux-run &&
111+
./cuda_8.0.44_linux-run --override --silent --verbose --toolkit --toolkitpath=$CUDA_ROOT &&
112+
rm -rf cuda_8.0.44_linux-run $CUDA_ROOT/{samples,jre,doc,share} &&
113113
cd -;
114114
fi
115115

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
=========
33

4+
0.1.1 "Colonel Worf"
5+
--------------------
6+
**Date:** 2019-01-23
7+
8+
- update Alpaka submodule to 0.3.5 #81
9+
- add `cuplaGetErrorString` #84
10+
- add `cuplaStreamQuerry` #85
11+
- add `cuplaPeekAtLastError` #86
12+
- fix TBB backend activation #90
13+
414
0.1.0 "Worf"
515
------------
616
**Date:** 2018-06-10

INSTALL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ cupla Install Guide
44
Requirements
55
------------
66

7-
- **cmake** 3.7.0 or higher
7+
- **cmake** 3.11.0 or higher
88
- *Debian/Ubuntu:* `sudo apt-get install cmake file cmake-curses-gui`
99
- *Arch Linux:* `sudo pacman --sync cmake`
1010

1111
- **cupla**
1212
- https://github.com/ComputationalRadiationPhysics/cupla
1313
- `export CUPLA_ROOT=<cupla_SRC_CODE_DIR>`
14+
- `export CMAKE_PREFIX_PATH=$CUPLA_ROOT:$CMAKE_PREFIX_PATH`
1415
- example:
1516
- `mkdir -p $HOME/src`
1617
- `git clone git://github.com/ComputationalRadiationPhysics/cupla.git $HOME/src/cupla`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For more information see [LICENSE.md](LICENSE.md).
3636
Dependencies
3737
------------
3838

39-
- **cmake 3.7.0**
39+
- **cmake 3.11.0**
4040
- **alpaka**
4141
- is loaded as `git submodule` within **cupla** (see [INSTALL.md](INSTALL.md))
4242
- for more information please read [README.md](https://github.com/ComputationalRadiationPhysics/alpaka/blob/master/README.md)

alpaka

Submodule alpaka updated from 7d3e6dd to c922a19

cmake/addExecutable.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
cmake_minimum_required(VERSION 3.3.0)
2323

2424

25-
function(CUPLA_ADD_EXECUTABLE BinaryName)
25+
macro(CUPLA_ADD_EXECUTABLE BinaryName)
2626

2727
include_directories(${cupla_INCLUDE_DIRS})
2828
add_definitions(${cupla_DEFINITIONS})
@@ -32,4 +32,4 @@ function(CUPLA_ADD_EXECUTABLE BinaryName)
3232
${ARGN}
3333
${cupla_SOURCE_FILES}
3434
)
35-
endfunction()
35+
endmacro()

cuplaConfig.cmake

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@
2222
# Required cmake version.
2323
################################################################################
2424

25-
CMAKE_MINIMUM_REQUIRED(VERSION 3.7.0)
25+
cmake_minimum_required(VERSION 3.11.0)
26+
27+
################################################################################
28+
# CMake policies
29+
#
30+
# Search in <PackageName>_ROOT:
31+
# https://cmake.org/cmake/help/v3.12/policy/CMP0074.html
32+
################################################################################
33+
34+
if(POLICY CMP0074)
35+
cmake_policy(SET CMP0074 NEW)
36+
endif()
2637

2738
################################################################################
2839
# cupla
@@ -96,6 +107,7 @@ OPTION(ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLE "Enable the OpenMP 2.0 CPU grid block
96107
OPTION(ALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLE "Enable the OpenMP 2.0 CPU block thread accelerator" OFF)
97108
OPTION(ALPAKA_ACC_CPU_BT_OMP4_ENABLE "Enable the OpenMP 4.0 CPU block and block thread accelerator" OFF)
98109
OPTION(ALPAKA_ACC_GPU_CUDA_ENABLE "Enable the CUDA GPU accelerator" OFF)
110+
OPTION(ALPAKA_ACC_GPU_HIP_ENABLE "Enable the HIP back-end (all other back-ends must be disabled)" OFF)
99111

100112

101113
set(cupla_ALPAKA_PROVIDER "intern" CACHE STRING "Select which alpaka is used")
@@ -260,7 +272,7 @@ endif()
260272
# Find cupla version.
261273
################################################################################
262274
# FIXME: Add a version.hpp
263-
set(_cupla_VERSION "0.1.0")
275+
set(_cupla_VERSION "0.1.1")
264276

265277
################################################################################
266278
# Set return values.

example/CUDASamples/asyncAPI/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ SET(_SOURCE_DIR "src/")
3737

3838
PROJECT("asyncAPI")
3939

40+
################################################################################
41+
# CMake policies
42+
#
43+
# Search in <PackageName>_ROOT:
44+
# https://cmake.org/cmake/help/v3.12/policy/CMP0074.html#
45+
################################################################################
46+
47+
if(POLICY CMP0074)
48+
cmake_policy(SET CMP0074 NEW)
49+
endif()
50+
4051
################################################################################
4152
# Find cupla
4253
################################################################################

example/CUDASamples/asyncAPI_tuned/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ SET(_SOURCE_DIR "src/")
3737

3838
PROJECT("asyncAPI_tuned")
3939

40+
################################################################################
41+
# CMake policies
42+
#
43+
# Search in <PackageName>_ROOT:
44+
# https://cmake.org/cmake/help/v3.12/policy/CMP0074.html#
45+
################################################################################
46+
47+
if(POLICY CMP0074)
48+
cmake_policy(SET CMP0074 NEW)
49+
endif()
50+
4051
################################################################################
4152
# Find cupla
4253
################################################################################

0 commit comments

Comments
 (0)