/tomo/pyhst

To get this branch, use:
bzr branch http://darksoft.org/webbzr/tomo/pyhst

« back to all changes in this revision

Viewing changes to hst_cuda/CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2017-08-28 01:51:13 UTC
  • Revision ID: csa@suren.me-20170828015113-5doek365s2330y4r
NewTex kernel

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    ${HEADERS}
31
31
)
32
32
 
 
33
#SET(CUDA_64_BIT_DEVICE_CODE FALSE)
33
34
#\ --maxrregcount=64
34
35
if (IGNORE_OLD_HARDWARE)
35
 
    if (CUDA_VERSION_MAJOR GREATER 3)
36
 
        if (ENABLE_KEPLER_INSTRUCTIONS)
37
 
            CUDA_COMPILE_PTX(ptx ${hst_cuda_SRCS} OPTIONS -arch sm_30   --ptxas-options=-v)
38
 
            CUDA_ADD_LIBRARY(hst_cuda ${hst_cuda_SRCS} OPTIONS -arch sm_30 --ptxas-options=-v)
39
 
        else (ENABLE_KEPLER_INSTRUCTIONS)
40
 
            CUDA_ADD_LIBRARY(hst_cuda ${hst_cuda_SRCS} OPTIONS -arch sm_21 --ptxas-options=-v)
41
 
        endif (ENABLE_KEPLER_INSTRUCTIONS)
42
 
    elseif (CUDA_VERSION_MAJOR GREATER 2 AND CUDA_VERSION_MINOR GREATER 1)
43
 
        CUDA_ADD_LIBRARY(hst_cuda ${hst_cuda_SRCS} OPTIONS -arch compute_20 --ptxas-options=-v )
44
 
    else ()
45
 
        CUDA_ADD_LIBRARY(hst_cuda ${hst_cuda_SRCS} OPTIONS --ptxas-options=-v )
46
 
    endif()
 
36
    if (ENABLE_KEPLER_INSTRUCTIONS)
 
37
        SET(NVCODES -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_61,code=sm_61)
 
38
#        CUDA_COMPILE_PTX(ptx ${hst_cuda_SRCS} OPTIONS ${NVCODES}  --ptxas-options=-v)
 
39
        CUDA_ADD_LIBRARY(hst_cuda ${hst_cuda_SRCS} OPTIONS ${NVCODES} --ptxas-options=-v)
 
40
    else (ENABLE_KEPLER_INSTRUCTIONS)
 
41
#        CUDA_COMPILE_PTX(ptx ${hst_cuda_SRCS} OPTIONS -arch sm_21  --ptxas-options=-v)
 
42
        CUDA_ADD_LIBRARY(hst_cuda ${hst_cuda_SRCS} OPTIONS -arch sm_21 --ptxas-options=-v) #21
 
43
    endif (ENABLE_KEPLER_INSTRUCTIONS)
47
44
else (IGNORE_OLD_HARDWARE)
48
45
    CUDA_ADD_LIBRARY(hst_cuda ${hst_cuda_SRCS} OPTIONS --ptxas-options=-v -arch sm_11 )
49
46
endif (IGNORE_OLD_HARDWARE)