From 309fb5a902ace2f524c48f62b738aff04113eaf2 Mon Sep 17 00:00:00 2001 From: Aurelien Bouteiller Date: Fri, 9 Aug 2024 13:23:19 -0400 Subject: [PATCH] Cublas: sometimes we would include cublas.h before including cusolver.h use cublasv2 by default (req. for cusolver anyway) except if cublas(v1) is included before the dplasmajdf/aux.h include This reverts the logic for cublas.h determination, and is a first steps toward deprecating cublas(v1) usage entirely --- src/dplasmaaux_cuda.h | 8 ++++---- src/dtd_wrappers/zgemm.c | 5 ----- src/dtd_wrappers/zherk.c | 5 ----- src/dtd_wrappers/zpotrf.c | 5 ----- src/dtd_wrappers/ztrsm.c | 5 ----- src/zgemm_NN.jdf | 11 +++++------ src/zgemm_NN_gpu.jdf | 14 +++++--------- src/zgemm_NN_summa.jdf | 12 ++++-------- src/zgemm_NT.jdf | 11 +++++------ src/zgemm_NT_summa.jdf | 12 ++++-------- src/zgemm_TN.jdf | 11 +++++------ src/zgemm_TN_summa.jdf | 12 ++++-------- src/zgemm_TT.jdf | 11 +++++------ src/zgemm_TT_summa.jdf | 12 ++++-------- src/zgetrf_nopiv.jdf | 8 ++++---- src/zpoinv_L.jdf | 9 ++++----- src/zpoinv_U.jdf | 9 ++++----- src/zpotrf_L.jdf | 12 +----------- src/zpotrf_U.jdf | 12 +----------- src/ztrsm_LLN.jdf | 6 +++++- src/ztrsm_LLT.jdf | 6 +++++- src/ztrsm_LUN.jdf | 6 +++++- src/ztrsm_LUT.jdf | 6 +++++- src/ztrsm_RLN.jdf | 6 +++++- src/ztrsm_RLT.jdf | 6 +++++- src/ztrsm_RUN.jdf | 6 +++++- src/ztrsm_RUT.jdf | 6 +++++- 27 files changed, 99 insertions(+), 133 deletions(-) diff --git a/src/dplasmaaux_cuda.h b/src/dplasmaaux_cuda.h index 5336613a..ceebd1cb 100644 --- a/src/dplasmaaux_cuda.h +++ b/src/dplasmaaux_cuda.h @@ -16,11 +16,11 @@ /** * DPLASMA currently supports a mix of cublas v1 and v2, but not in the same source file. Thus, * the simplest way to provide common headers is to require the developer to manually specify - * when cublas_v2 is needed by including the header before dplasmaaux.h. Otherwise, we will include - * cublas.h (v1) automatically if CUDA is enabled. + * when legacy cublas is needed by including the header before dplasmaaux.h. Otherwise, we will include + * cublas_v2.h (v2) automatically if CUDA is enabled. */ -#if !defined(CUBLAS_V2_H_) -#include +#if !defined(CUBLAS_H_) +#include #endif /* !defined(CUBLAS_V2_H_) */ #define dplasma_cublas_side(side) \ diff --git a/src/dtd_wrappers/zgemm.c b/src/dtd_wrappers/zgemm.c index 6a13bb37..1650b6f6 100644 --- a/src/dtd_wrappers/zgemm.c +++ b/src/dtd_wrappers/zgemm.c @@ -7,11 +7,6 @@ * */ #include "dplasma/config.h" - -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ - #include "dplasma_z_dtd.h" int diff --git a/src/dtd_wrappers/zherk.c b/src/dtd_wrappers/zherk.c index c1943425..3de61529 100644 --- a/src/dtd_wrappers/zherk.c +++ b/src/dtd_wrappers/zherk.c @@ -7,11 +7,6 @@ * */ #include "dplasma/config.h" - -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ - #include "dplasma_z_dtd.h" int diff --git a/src/dtd_wrappers/zpotrf.c b/src/dtd_wrappers/zpotrf.c index b74e6293..521845c2 100644 --- a/src/dtd_wrappers/zpotrf.c +++ b/src/dtd_wrappers/zpotrf.c @@ -7,11 +7,6 @@ * */ #include "dplasma/config.h" - -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ - #include "dplasma_z_dtd.h" int diff --git a/src/dtd_wrappers/ztrsm.c b/src/dtd_wrappers/ztrsm.c index b54c0ec8..7e5a7ac6 100644 --- a/src/dtd_wrappers/ztrsm.c +++ b/src/dtd_wrappers/ztrsm.c @@ -7,11 +7,6 @@ * */ #include "dplasma/config.h" - -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ - #include "dplasma_z_dtd.h" int diff --git a/src/zgemm_NN.jdf b/src/zgemm_NN.jdf index 407ebbc8..fa273d40 100644 --- a/src/zgemm_NN.jdf +++ b/src/zgemm_NN.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2023 The University of Tennessee and The University + * Copyright (c) 2010-2024 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * @@ -8,16 +8,15 @@ extern "C" %{ * $COPYRIGHT * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" -#include "dplasmaaux.h" #include "parsec/data_dist/matrix/matrix.h" #include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" #include -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ - /* Define the different shapes this JDF is using */ #define A_SHAPE 0 #define B_SHAPE 1 diff --git a/src/zgemm_NN_gpu.jdf b/src/zgemm_NN_gpu.jdf index 97467030..bf087dd7 100644 --- a/src/zgemm_NN_gpu.jdf +++ b/src/zgemm_NN_gpu.jdf @@ -9,18 +9,14 @@ extern "C" %{ * */ -#include -#include "dplasmajdf.h" -#include "dplasmaaux.h" -#include "parsec/data_dist/matrix/matrix.h" -#include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" - +#include "dplasma/config.h" #if defined(DPLASMA_HAVE_CUDA) #include #endif /* defined(DPLASMA_HAVE_CUDA) */ -#if defined(DPLASMA_HAVE_HIP) -#include -#endif /* defined(DPLASMA_HAVE_HIP) */ +#include "dplasmajdf.h" +#include "parsec/data_dist/matrix/matrix.h" +#include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" +#include static void succ(int *x, int *y, int *z, int xMax, int yMax, int zMax, int l) { diff --git a/src/zgemm_NN_summa.jdf b/src/zgemm_NN_summa.jdf index 3c38167b..c27a5846 100644 --- a/src/zgemm_NN_summa.jdf +++ b/src/zgemm_NN_summa.jdf @@ -8,19 +8,15 @@ extern "C" %{ * $COPYRIGHT * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" -#include "dplasmaaux.h" #include "parsec/data_dist/matrix/matrix.h" #include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" #include -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ -#if defined(DPLASMA_HAVE_HIP) -#include -#endif /* defined(DPLASMA_HAVE_HIP) */ - /* Define the different shapes this JDF is using */ #define A_SHAPE 0 #define B_SHAPE 1 diff --git a/src/zgemm_NT.jdf b/src/zgemm_NT.jdf index 051bb603..b6fa8c89 100644 --- a/src/zgemm_NT.jdf +++ b/src/zgemm_NT.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2023 The University of Tennessee and The University + * Copyright (c) 2010-2024 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * @@ -8,16 +8,15 @@ extern "C" %{ * $COPYRIGHT * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" -#include "dplasmaaux.h" #include "parsec/data_dist/matrix/matrix.h" #include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" #include -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ - /* Define the different shapes this JDF is using */ #define A_SHAPE 0 #define B_SHAPE 1 diff --git a/src/zgemm_NT_summa.jdf b/src/zgemm_NT_summa.jdf index 03fd212d..d66e5171 100644 --- a/src/zgemm_NT_summa.jdf +++ b/src/zgemm_NT_summa.jdf @@ -8,19 +8,15 @@ extern "C" %{ * $COPYRIGHT * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" -#include "dplasmaaux.h" #include "parsec/data_dist/matrix/matrix.h" #include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" #include -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ -#if defined(DPLASMA_HAVE_HIP) -#include -#endif /* defined(DPLASMA_HAVE_HIP) */ - /* Define the different shapes this JDF is using */ #define A_SHAPE 0 #define B_SHAPE 1 diff --git a/src/zgemm_TN.jdf b/src/zgemm_TN.jdf index 6d2eca1e..aa529d91 100644 --- a/src/zgemm_TN.jdf +++ b/src/zgemm_TN.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2023 The University of Tennessee and The University + * Copyright (c) 2010-2024 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * @@ -8,16 +8,15 @@ extern "C" %{ * $COPYRIGHT * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" -#include "dplasmaaux.h" #include "parsec/data_dist/matrix/matrix.h" #include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" #include -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ - /* Define the different shapes this JDF is using */ #define A_SHAPE 0 #define B_SHAPE 1 diff --git a/src/zgemm_TN_summa.jdf b/src/zgemm_TN_summa.jdf index af3a113a..b095ac61 100644 --- a/src/zgemm_TN_summa.jdf +++ b/src/zgemm_TN_summa.jdf @@ -8,19 +8,15 @@ extern "C" %{ * $COPYRIGHT * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" -#include "dplasmaaux.h" #include "parsec/data_dist/matrix/matrix.h" #include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" #include -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ -#if defined(DPLASMA_HAVE_HIP) -#include -#endif /* defined(DPLASMA_HAVE_HIP) */ - /* Define the different shapes this JDF is using */ #define A_SHAPE 0 #define B_SHAPE 1 diff --git a/src/zgemm_TT.jdf b/src/zgemm_TT.jdf index e3595ca3..4a4effdc 100644 --- a/src/zgemm_TT.jdf +++ b/src/zgemm_TT.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2023 The University of Tennessee and The University + * Copyright (c) 2010-2024 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * @@ -8,16 +8,15 @@ extern "C" %{ * $COPYRIGHT * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" -#include "dplasmaaux.h" #include "parsec/data_dist/matrix/matrix.h" #include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" #include -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ - /* Define the different shapes this JDF is using */ #define A_SHAPE 0 #define B_SHAPE 1 diff --git a/src/zgemm_TT_summa.jdf b/src/zgemm_TT_summa.jdf index 99b3da2a..5b3eb373 100644 --- a/src/zgemm_TT_summa.jdf +++ b/src/zgemm_TT_summa.jdf @@ -8,19 +8,15 @@ extern "C" %{ * $COPYRIGHT * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" -#include "dplasmaaux.h" #include "parsec/data_dist/matrix/matrix.h" #include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" #include -#if defined(DPLASMA_HAVE_CUDA) -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ -#if defined(DPLASMA_HAVE_HIP) -#include -#endif /* defined(DPLASMA_HAVE_HIP) */ - /* Define the different shapes this JDF is using */ #define A_SHAPE 0 #define B_SHAPE 1 diff --git a/src/zgetrf_nopiv.jdf b/src/zgetrf_nopiv.jdf index d77bedda..04113181 100644 --- a/src/zgetrf_nopiv.jdf +++ b/src/zgetrf_nopiv.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2023 The University of Tennessee and The University + * Copyright (c) 2010-2024 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2013 Inria. All rights reserved. @@ -10,12 +10,12 @@ extern "C" %{ * @precisions normal z -> s d c * */ -#include "dplasmajdf.h" -#include "parsec/data_dist/matrix/matrix.h" - +#include "dplasma/config.h" #if defined(DPLASMA_HAVE_CUDA) #include #endif /* defined(DPLASMA_HAVE_CUDA) */ +#include "dplasmajdf.h" +#include "parsec/data_dist/matrix/matrix.h" /* Define the different shapes this JDF is using */ #define DEFAULT 0 diff --git a/src/zpoinv_L.jdf b/src/zpoinv_L.jdf index 309e4b86..4dc3e79c 100644 --- a/src/zpoinv_L.jdf +++ b/src/zpoinv_L.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2020 The University of Tennessee and The University + * Copyright (c) 2010-2024 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2013 Inria. All rights reserved. @@ -10,13 +10,12 @@ extern "C" %{ * @precisions normal z -> s d c * */ -#include "dplasmajdf.h" -#include "parsec/data_dist/matrix/matrix.h" - +#include "dplasma/config.h" #if defined(DPLASMA_HAVE_CUDA) #include #endif /* defined(DPLASMA_HAVE_CUDA) */ - +#include "dplasmajdf.h" +#include "parsec/data_dist/matrix/matrix.h" %} descA [type = "parsec_tiled_matrix_t*"] diff --git a/src/zpoinv_U.jdf b/src/zpoinv_U.jdf index 3db2a761..bdfc7459 100644 --- a/src/zpoinv_U.jdf +++ b/src/zpoinv_U.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2020 The University of Tennessee and The University + * Copyright (c) 2010-2024 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2013 Inria. All rights reserved. @@ -10,13 +10,12 @@ extern "C" %{ * @precisions normal z -> s d c * */ -#include "dplasmajdf.h" -#include "parsec/data_dist/matrix/matrix.h" - +#include "dplasma/config.h" #if defined(DPLASMA_HAVE_CUDA) #include #endif /* defined(DPLASMA_HAVE_CUDA) */ - +#include "dplasmajdf.h" +#include "parsec/data_dist/matrix/matrix.h" %} descA [type = "parsec_tiled_matrix_t*"] diff --git a/src/zpotrf_L.jdf b/src/zpotrf_L.jdf index 6d3ba6d0..5a2e335c 100644 --- a/src/zpotrf_L.jdf +++ b/src/zpotrf_L.jdf @@ -11,9 +11,9 @@ extern "C" %{ * */ #include "dplasma/config.h" - #include "dplasmajdf.h" #include "parsec/data_dist/matrix/matrix.h" +#include "potrf_gpu_workspaces.h" #if defined(PARSEC_HAVE_DEV_RECURSIVE_SUPPORT) #include "parsec/data_dist/matrix/subtile.h" @@ -24,16 +24,6 @@ static void zherk_recursive_cb(parsec_taskpool_t* tp, const parsec_recursive_cal static void ztrsm_recursive_cb(parsec_taskpool_t* tp, const parsec_recursive_callback_t* data); #endif /* PARSEC_HAVE_DEV_RECURSIVE_SUPPORT */ -#if defined(DPLASMA_HAVE_CUDA) -#include -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ -#if defined(DPLASMA_HAVE_HIP) -#include -#include -#endif /* defined(DPLASMA_HAVE_HIP) */ -#include "potrf_gpu_workspaces.h" - /* Define the different shapes this JDF is using */ #define DEFAULT 0 diff --git a/src/zpotrf_U.jdf b/src/zpotrf_U.jdf index 0473ca84..67846484 100644 --- a/src/zpotrf_U.jdf +++ b/src/zpotrf_U.jdf @@ -11,7 +11,7 @@ extern "C" %{ * */ #include "dplasma/config.h" - +#include "potrf_gpu_workspaces.h" #include "dplasmajdf.h" #include "parsec/data_dist/matrix/matrix.h" @@ -24,16 +24,6 @@ static void zherk_recursive_cb(parsec_taskpool_t* tp, const parsec_recursive_cal static void ztrsm_recursive_cb(parsec_taskpool_t* tp, const parsec_recursive_callback_t* data); #endif /* PARSEC_HAVE_DEV_RECURSIVE_SUPPORT */ -#if defined(DPLASMA_HAVE_CUDA) -#include -#include -#endif /* defined(DPLASMA_HAVE_CUDA) */ -#if defined(DPLASMA_HAVE_HIP) -#include -#include -#endif /* defined(DPLASMA_HAVE_HIP) */ -#include "potrf_gpu_workspaces.h" - /* Define the different shapes this JDF is using */ #define DEFAULT 0 diff --git a/src/ztrsm_LLN.jdf b/src/ztrsm_LLN.jdf index b814593a..40661a3b 100644 --- a/src/ztrsm_LLN.jdf +++ b/src/ztrsm_LLN.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2020 + * Copyright (c) 2010-2024 * * The University of Tennessee and The University * of Tennessee Research Foundation. All rights @@ -9,6 +9,10 @@ extern "C" %{ * @precisions normal z -> s d c * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" #include "parsec/data_dist/matrix/matrix.h" diff --git a/src/ztrsm_LLT.jdf b/src/ztrsm_LLT.jdf index 2c0d708e..fec3febc 100644 --- a/src/ztrsm_LLT.jdf +++ b/src/ztrsm_LLT.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2020 + * Copyright (c) 2010-2024 * * The University of Tennessee and The University * of Tennessee Research Foundation. All rights @@ -9,6 +9,10 @@ extern "C" %{ * @precisions normal z -> s d c * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" #include "parsec/data_dist/matrix/matrix.h" diff --git a/src/ztrsm_LUN.jdf b/src/ztrsm_LUN.jdf index 838cc835..e71a4c0b 100644 --- a/src/ztrsm_LUN.jdf +++ b/src/ztrsm_LUN.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2020 + * Copyright (c) 2010-2024 * * The University of Tennessee and The University * of Tennessee Research Foundation. All rights @@ -9,6 +9,10 @@ extern "C" %{ * @precisions normal z -> s d c * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" #include "parsec/data_dist/matrix/matrix.h" diff --git a/src/ztrsm_LUT.jdf b/src/ztrsm_LUT.jdf index d8eb0950..a009a7f2 100644 --- a/src/ztrsm_LUT.jdf +++ b/src/ztrsm_LUT.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2020 + * Copyright (c) 2010-2024 * * The University of Tennessee and The University * of Tennessee Research Foundation. All rights @@ -9,6 +9,10 @@ extern "C" %{ * @precisions normal z -> s d c * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" #include "parsec/data_dist/matrix/matrix.h" diff --git a/src/ztrsm_RLN.jdf b/src/ztrsm_RLN.jdf index 2cd6cc5e..759e95ad 100644 --- a/src/ztrsm_RLN.jdf +++ b/src/ztrsm_RLN.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2020 + * Copyright (c) 2010-2024 * * The University of Tennessee and The University * of Tennessee Research Foundation. All rights @@ -9,6 +9,10 @@ extern "C" %{ * @precisions normal z -> s d c * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" #include "parsec/data_dist/matrix/matrix.h" diff --git a/src/ztrsm_RLT.jdf b/src/ztrsm_RLT.jdf index bf799e47..12657a6a 100644 --- a/src/ztrsm_RLT.jdf +++ b/src/ztrsm_RLT.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2020 + * Copyright (c) 2010-2024 * * The University of Tennessee and The University * of Tennessee Research Foundation. All rights @@ -9,6 +9,10 @@ extern "C" %{ * @precisions normal z -> s d c * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" #include "parsec/data_dist/matrix/matrix.h" diff --git a/src/ztrsm_RUN.jdf b/src/ztrsm_RUN.jdf index 9d2a59f6..e864bc9c 100644 --- a/src/ztrsm_RUN.jdf +++ b/src/ztrsm_RUN.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2020 + * Copyright (c) 2010-2024 * * The University of Tennessee and The University * of Tennessee Research Foundation. All rights @@ -9,6 +9,10 @@ extern "C" %{ * @precisions normal z -> s d c * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" #include "parsec/data_dist/matrix/matrix.h" diff --git a/src/ztrsm_RUT.jdf b/src/ztrsm_RUT.jdf index 6e4385f3..7b8c5e54 100644 --- a/src/ztrsm_RUT.jdf +++ b/src/ztrsm_RUT.jdf @@ -1,6 +1,6 @@ extern "C" %{ /* - * Copyright (c) 2010-2020 + * Copyright (c) 2010-2024 * * The University of Tennessee and The University * of Tennessee Research Foundation. All rights @@ -9,6 +9,10 @@ extern "C" %{ * @precisions normal z -> s d c * */ +#include "dplasma/config.h" +#if defined(DPLASMA_HAVE_CUDA) +#include +#endif /* defined(DPLASMA_HAVE_CUDA) */ #include "dplasmajdf.h" #include "parsec/data_dist/matrix/matrix.h"