commit 38fafed3467998b1d635d0c15f089911901bff60
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Tue Feb 4 09:27:39 2025 +0100

    Fix building with hip but without hipblas
    
    starpu_hipblas_get_local_handle() will not be useful in that case
    anyway. starpu_hipblas_init/shutdown being available is however
    convenient.
    
    (cherry picked from commit 1807cc564683ed2d7ab403350faef6e10de4d996)

diff --git a/include/starpu_hipblas.h b/include/starpu_hipblas.h
index d87c1e1e57..77292a42d1 100644
--- a/include/starpu_hipblas.h
+++ b/include/starpu_hipblas.h
@@ -17,6 +17,12 @@
 #ifndef __STARPU_HIPBLAS_H__
 #define __STARPU_HIPBLAS_H__
 
+#ifdef STARPU_USE_HIP
+#ifdef STARPU_USE_HIPBLAS
+#include <hipblas/hipblas.h>
+#endif
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -36,10 +42,7 @@ extern "C" {
 void starpu_hipblas_init(void);
 
 #ifdef STARPU_USE_HIP
-#ifndef STARPU_USE_HIPBLAS
-typedef void* hipblasHandle_t;
-#endif
-
+#ifdef STARPU_USE_HIPBLAS
 /**
    Return the HIPBLAS handle to be used to queue HIPBLAS kernels. It
    is properly initialized and configured for multistream by
@@ -47,6 +50,7 @@ typedef void* hipblasHandle_t;
 */
 hipblasHandle_t starpu_hipblas_get_local_handle(void);
 #endif
+#endif
 
 /**
    Synchronously deinitialize the HIPBLAS library on
commit 95a974736c477ee5f10dac23c834a10114a8fbbc
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Jan 29 15:00:10 2024 +0100

    Fix exposing detection of hipblas
    
    (cherry picked from commit 87d52f7ed8ceeed840805acb8ee2b4cec50e6618)

diff --git a/include/starpu_config.h.in b/include/starpu_config.h.in
index 2d028301f8..e4ec272df5 100644
--- a/include/starpu_config.h.in
+++ b/include/starpu_config.h.in
@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2009-2023  Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
+ * Copyright (C) 2009-2024  Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  * Copyright (C) 2020       Federal University of Rio Grande do Sul (UFRGS)
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -74,6 +74,14 @@
 */
 #undef STARPU_USE_HIP
 
+/**
+   Defined when StarPU has been installed with
+   HIP BLAS support. It should be used in your code to detect the
+   availability of HIP BLAS.
+   @ingroup API_HIP_Extensions
+*/
+#undef STARPU_USE_HIPBLAS
+
 /**
    Defined when StarPU has been installed with
    NVidia-ML support. It should be used in your code to detect the
