Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to alpaka pre-0.4.0 version #2958

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions include/pmacc/nvidia/atomic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ T atomicAllInc(T *ptr)
#ifdef __CUDA_ARCH__
return atomicAllInc(alpaka::atomic::AtomicCudaBuiltIn(), ptr, ::alpaka::hierarchy::Grids());
#else
// assume that we can use stl atomics if we are not on gpu
return atomicAllInc(alpaka::atomic::AtomicStlLock<16>(), ptr, ::alpaka::hierarchy::Grids());
// assume that we can use the standard library atomics if we are not on gpu
return atomicAllInc(alpaka::atomic::AtomicStdLibLock<16>(), ptr, ::alpaka::hierarchy::Grids());
#endif
}

Expand Down
1 change: 1 addition & 0 deletions thirdParty/alpaka/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/doc/doxygen/*
!/doc/doxygen/Doxyfile
!/doc/doxygen/alpaka_doxygen.png
/doc/latex/*
**/build

Expand Down
354 changes: 241 additions & 113 deletions thirdParty/alpaka/.travis.yml

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions thirdParty/alpaka/.zenodo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"title": "Alpaka: Abstraction Library for Parallel Kernel Acceleration",
"description": "The alpaka library is a header-only C++11 abstraction library for accelerator development. Its aim is to provide performance portability across accelerators through the abstraction (not hiding!) of the underlying levels of parallelism.",
"creators": [
{
"affiliation": "LogMeIn, Inc.",
"name": "Worpitz, Benjamin"
},
{
"affiliation": "Helmholtz-Zentrum Dresden-Rossendorf, TU Dresden",
"name": "Matthes, Alexander",
"orcid": "0000-0002-6702-2015"
},
{
"affiliation": "LogMeIn, Inc.",
"name": "Zenker, Erik",
"orcid": "0000-0001-9417-8712"
},
{
"affiliation": "Helmholtz-Zentrum Dresden-Rossendorf, TU Dresden",
"name": "Huebl, Axel",
"orcid": "0000-0003-1943-7141"
},
{
"affiliation": "Helmholtz-Zentrum Dresden-Rossendorf",
"name": "Widera, René",
"orcid": "0000-0003-1642-0459"
}
],
"access_right": "open",
"keywords": [
"HPC",
"CUDA",
"OpenMP",
"C++",
"GPU",
"HIP",
"heterogeneous computing",
"performance portability"
],
"license": "MPL-2.0",
"upload_type": "software",
"grants": [
{
"id": "654220"
}
],
"related_identifiers": [
{
"identifier": "DOI:10.5281/zenodo.49768",
"relation": "isCitedBy"
},
{
"identifier": "DOI:10.1007/978-3-319-46079-6_21",
"relation": "cites"
},
{
"identifier": "DOI:10.1109/IPDPSW.2016.50",
"relation": "isCitedBy"
},
{
"identifier": "DOI:10.1007/978-3-319-67630-2_36",
"relation": "isCitedBy"
}
]
}
34 changes: 18 additions & 16 deletions thirdParty/alpaka/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
#
# Copyright 2015-2017 Benjamin Worpitz
# Copyright 2015-2019 Benjamin Worpitz
#
# This file is part of alpaka.
#
# alpaka is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# alpaka is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with alpaka.
# If not, see <http://www.gnu.org/licenses/>.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

################################################################################
# Required CMake version

cmake_minimum_required(VERSION 3.7.0)
cmake_minimum_required(VERSION 3.11.0)

project("alpakaAll")

SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)

################################################################################
# CMake policies
#
# Search in <PackageName>_ROOT:
# https://cmake.org/cmake/help/v3.12/policy/CMP0074.html

if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()

################################################################################
# Options and Variants

Expand All @@ -34,7 +36,7 @@ include(CTest)
# automatically defines: BUILD_TESTING, default is ON

################################################################################
# Add subdirectories.
# Add subdirectories

if(alpaka_BUILD_EXAMPLES)
add_subdirectory("example/")
Expand Down
Loading