Skip to content

Commit

Permalink
working cuda example
Browse files Browse the repository at this point in the history
  • Loading branch information
studouglas committed Nov 17, 2015
1 parent bea3b45 commit 716e5ff
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ G4STORK/Build-xcode
G4STORK/Build-xcode-serial
geant4.10.00.p02-build-xcode

CUDA-test/bin
CUDA_simpleTest/bin
CUDA_Hadr04

# Geant / G4STORK build files
G4STORK/Build/*
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
#------------------------------------------------------------------------------

add_subdirectory(cuda)
#add_subdirectory(cuda)

if(GEANT4_BUILD_GRANULAR_LIBS)
include(Geant4MacroLibraryTargets)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
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)

Expand Down

0 comments on commit 716e5ff

Please sign in to comment.