forked from ComputationalRadiationPhysics/haseongpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'include/alpaka/' changes from 955fa97..9dfdb96
9dfdb96 fix missing OpenMP link flag b9f099c fix foldrAll ICC bug 83ddac5 disable the OpenMP 4 back-end by default 8644064 fix Vec for Intel 819e5d9 fix boost 1.56 missing const bug f9cd663 really fix Intel cpuid 330d983 remove incorrect docu 9f1b692 fix Intel compiler cpuid 1aa4c86 fix missing OMP_NUM_THREADS reset in getMaxOmpThreads 328e866 fix CUDA compilation 33c7888 remove ICC from the readme (untested / not compiling) 40a8465 always interpret all source files as .cu files for nvcc 25f4670 allow vectorize to be called without the element type 882c0a9 enhance documentation 05454a6 fix ambiguous template specialization for GetWorkDiv 5b70326 remove call to std::ref in BlockSharedAllocCudaBuiltIn e15c40a fix fix AtomicOmpCritSec afffe2f fix wrong atomic implementation for AccCpuOmp2Blocks 2a60bbb fix BufCudaRt destruction 062378d add ALPAKA_ADD_EXECUTABLE to alpakaConfig.cmake b9a4125 use DimInt more consistently 919dc26 move ElemType from mem::view to elem 2807fc8 add initial ALPAKA_ADD_EXECUTABLE f019e70 fix BufPlainPtrWrapper pitch 1ca1923 fix missing OpenMP linker flag 9ee231d fix getFreeGlobalMemSizeBytes 7e853c6 Merge pull request ComputationalRadiationPhysics#54 from psychocoderHPC/fix-cudaSet 6796eff Merge pull request ComputationalRadiationPhysics#55 from psychocoderHPC/fix-callingHostFunctionFromDevice 9f3d8e6 fix warning calling host function from device 000a250 fix wrong usage of `getPitchBytes<>()` 8be955d Merge pull request ComputationalRadiationPhysics#53 from psychocoderHPC/topic-suppressHostDeviceWarning b7c877d Merge pull request ComputationalRadiationPhysics#52 from psychocoderHPC/tpoic-updateGitIgnore 0b94251 suppress host device warning 33a59be update `.gitignore` 237898f refactoring d0ad945 implement getFreeGlobalMemSizeBytes f85e233 allow accelerators to inherit from rand implementation d96e8b5 fix CUDA set implemenentation git-subtree-dir: include/alpaka git-subtree-split: 9dfdb96b0cb2fc32a1f2e447de755905f7538bf4
- Loading branch information
1 parent
884eb56
commit 66f2e53
Showing
96 changed files
with
1,237 additions
and
1,308 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
################################################################################ | ||
# Copyright 2015 Benjamin Worpitz | ||
# | ||
# Permission to use, copy, modify, and/or distribute this software for any | ||
# purpose with or without fee is hereby granted, provided that the above | ||
# copyright notice and this permission notice appear in all copies. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | ||
# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER | ||
# RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, | ||
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE | ||
# USE OR PERFORMANCE OF THIS SOFTWARE. | ||
################################################################################ | ||
|
||
# CUDA_SOURCE_PROPERTY_FORMAT is only supported starting from 3.3.0. | ||
CMAKE_MINIMUM_REQUIRED(VERSION 3.3.0) | ||
|
||
#------------------------------------------------------------------------------ | ||
# Calls CUDA_ADD_EXECUTABLE or ADD_EXECUTABLE depending on the enabled alpaka accelerators. | ||
#------------------------------------------------------------------------------ | ||
FUNCTION(ALPAKA_ADD_EXECUTABLE In_Name) | ||
IF(ALPAKA_ACC_GPU_CUDA_ENABLE) | ||
FOREACH(_file ${ARGN}) | ||
IF((${_file} MATCHES "\\.cpp$") OR (${_file} MATCHES "\\.cxx$")) | ||
SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES CUDA_SOURCE_PROPERTY_FORMAT OBJ) | ||
ENDIF() | ||
ENDFOREACH() | ||
CMAKE_POLICY(SET CMP0023 OLD) # CUDA_ADD_EXECUTABLE calls TARGET_LINK_LIBRARIES without keywords. | ||
CUDA_ADD_EXECUTABLE( | ||
${In_Name} | ||
${ARGN}) | ||
ELSE() | ||
ADD_EXECUTABLE( | ||
${In_Name} | ||
${ARGN}) | ||
ENDIF() | ||
ENDFUNCTION() |
Oops, something went wrong.