-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
497e0e7
commit bea3b45
Showing
12 changed files
with
30 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
cmake_minimum_required (VERSION 2.8) | ||
project(TestingCudaSquareArray) | ||
project(MainExe) | ||
|
||
find_package (CUDA REQUIRED) | ||
|
||
include_directories(/usr/local/cuda/include) | ||
|
||
cuda_add_executable (TestingCudaSquareArray DeviceMain.h DeviceMain.cu HostMain.cpp) | ||
cuda_add_library (TestingCudaSquareArrayLib DeviceMain.h DeviceMain.cu) | ||
add_executable (MainExe HostMain.cpp) | ||
|
||
LIST(APPEND CMAKE_CXX_FLAGS "-std=c++0x -O3 -ffast-math -Wall") | ||
|
||
LIST(APPEND CUDA_NVCC_FLAGS --compiler-options -fno-strict-aliasing -lineinfo -use_fast_math -Xptxas -dlcm=cg) | ||
LIST(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_30,code=sm_30) | ||
|
||
target_link_libraries(TestingCudaSquareArray /usr/local/cuda/lib/libcudart_static.a) | ||
target_link_libraries(MainExe TestingCudaSquareArrayLib /usr/local/cuda/lib/libcudart_static.a) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 was deleted.
Oops, something went wrong.
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
13 changes: 13 additions & 0 deletions
13
geant4.10.00.p02/source/processes/hadronic/models/neutron_hp/cuda/CMakeLists.txt
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,13 @@ | ||
cmake_minimum_required (VERSION 2.8) | ||
|
||
find_package (CUDA REQUIRED) | ||
|
||
include_directories(/usr/local/cuda/include) | ||
|
||
cuda_add_library (CUDA_G4NeutronHPVector SHARED CUDA_G4NeutronHPVector.h CUDA_G4NeutronHPVector.cu) | ||
|
||
#LIST(APPEND CMAKE_CXX_FLAGS "-std=c++0x -O3 -ffast-math -Wall") | ||
LIST(APPEND CUDA_NVCC_FLAGS --compiler-options -fno-strict-aliasing -lineinfo -use_fast_math -Xptxas -dlcm=cg) | ||
LIST(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_30,code=sm_30) | ||
|
||
#target_link_libraries(Geant4 CUDA_G4NeutronHPVector /usr/local/cuda/lib/libcudart_static.a) |
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 |
---|---|---|
|
@@ -38,4 +38,4 @@ float squareArray(int N) { | |
cudaFree(a_d); | ||
|
||
return a_h[N-1]; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
geant4.10.00.p02/source/processes/hadronic/models/neutron_hp/cuda/CUDA_G4NeutronHPVector.h
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 @@ | ||
float squareArray(int N); |
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