CMakeLists.txt 1.73 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
###
#
# @copyright (c) 2009-2014 The University of Tennessee and The University
#                          of Tennessee Research Foundation.
#                          All rights reserved.
# @copyright (c) 2012-2014 Inria. All rights reserved.
# @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
#
###
#
#  @file CMakeLists.txt
#
#  @project MORSE
#  MORSE is a software package provided by:
#     Inria Bordeaux - Sud-Ouest,
#     Univ. of Tennessee,
#     King Abdullah Univesity of Science and Technology
#     Univ. of California Berkeley,
#     Univ. of Colorado Denver.
#
#  @author Florent Pruvost
#  @date 16-09-2015
#
###

# Generate the morse sources for all possible precisions
# ------------------------------------------------------
set(CUDABLAS_SRCS_GENERATED "")
set(ZSRC
    cuda_zgelqt.c
31 32
    cuda_zgemerge.c
    cuda_zgemm.c
33 34 35
    cuda_zgeqrt.c
    cuda_zgessm.c
    cuda_zgetrf.c
36 37 38
    cuda_zhemm.c
    cuda_zher2k.c
    cuda_zherk.c
39
    cuda_zlauum.c
40
    cuda_zparfb.c
41 42
    cuda_zpotrf.c
    cuda_zssssm.c
43 44 45 46 47
    cuda_zsymm.c
    cuda_zsyr2k.c
    cuda_zsyrk.c
    cuda_ztrmm.c
    cuda_ztrsm.c
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
    cuda_ztrtri.c
    cuda_ztslqt.c
    cuda_ztsmlq.c
    cuda_ztsmqr.c
    cuda_ztsqrt.c
    cuda_ztstrf.c
    cuda_zunmlqt.c
    cuda_zunmqrt.c
    )

precisions_rules_py(CUDABLAS_SRCS_GENERATED "${ZSRC}"
                    PRECISIONS "${CHAMELEON_PRECISION}")

set(CUDABLAS_SRCS
    ${CUDABLAS_SRCS_GENERATED}
    )

# Compile step
# ------------
add_library(cudablas ${CUDABLAS_SRCS})
add_dependencies(cudablas cudablas_include)
set_property(TARGET cudablas PROPERTY LINKER_LANGUAGE Fortran)

# installation
# ------------
install(TARGETS cudablas
        DESTINATION lib)

###
### END CMakeLists.txt
###