Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a442c4c4 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

starpu/hmat: Fix compilation warning in the interface

parent 850b5e43
No related branches found
No related tags found
1 merge request!256Update on descriptors
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "chameleon_starpu.h" #include "chameleon_starpu.h"
#if defined(CHAMELEON_USE_HMAT) #if defined(CHAMELEON_USE_HMAT)
#include "coreblas/hmat.h" #include "coreblas/hmat.h"
#endif
static inline void static inline void
cti_hmat_destroy( starpu_cham_tile_interface_t *cham_tile_interface ) cti_hmat_destroy( starpu_cham_tile_interface_t *cham_tile_interface )
...@@ -47,7 +46,7 @@ static inline size_t ...@@ -47,7 +46,7 @@ static inline size_t
cti_get_hmat_required_size( starpu_cham_tile_interface_t *cham_tile_interface ) cti_get_hmat_required_size( starpu_cham_tile_interface_t *cham_tile_interface )
{ {
size_t size = 0; size_t size = 0;
#if defined(CHAMELEON_USE_HMAT)
if ( (cham_tile_interface->tile.format & CHAMELEON_TILE_HMAT) && if ( (cham_tile_interface->tile.format & CHAMELEON_TILE_HMAT) &&
(cham_tile_interface->tile.mat != NULL ) ) (cham_tile_interface->tile.mat != NULL ) )
{ {
...@@ -68,10 +67,15 @@ cti_get_hmat_required_size( starpu_cham_tile_interface_t *cham_tile_interface ) ...@@ -68,10 +67,15 @@ cti_get_hmat_required_size( starpu_cham_tile_interface_t *cham_tile_interface )
STARPU_ASSERT_MSG( 0, "cti_get_hmat_required_size(cham_tile_interface): unknown flttype\n" ); STARPU_ASSERT_MSG( 0, "cti_get_hmat_required_size(cham_tile_interface): unknown flttype\n" );
} }
} }
#endif
(void)cham_tile_interface;
return size; return size;
} }
#else
static inline size_t
cti_get_hmat_required_size( starpu_cham_tile_interface_t *cham_tile_interface __attribute__((unused)) ) {
return 0;
}
#endif
static inline CHAM_tile_t * static inline CHAM_tile_t *
cti_handle_get( starpu_data_handle_t handle ) cti_handle_get( starpu_data_handle_t handle )
...@@ -454,7 +458,6 @@ cti_peek_data( starpu_data_handle_t handle, unsigned node, void *ptr, size_t cou ...@@ -454,7 +458,6 @@ cti_peek_data( starpu_data_handle_t handle, unsigned node, void *ptr, size_t cou
starpu_data_get_interface_on_node(handle, node); starpu_data_get_interface_on_node(handle, node);
char *tmp = ptr; char *tmp = ptr;
size_t size;
#if defined(CHAMELEON_USE_MPI_DATATYPES) #if defined(CHAMELEON_USE_MPI_DATATYPES)
/* /*
...@@ -467,6 +470,7 @@ cti_peek_data( starpu_data_handle_t handle, unsigned node, void *ptr, size_t cou ...@@ -467,6 +470,7 @@ cti_peek_data( starpu_data_handle_t handle, unsigned node, void *ptr, size_t cou
#else #else
{ {
CHAM_tile_t dsttile; CHAM_tile_t dsttile;
size_t size;
/* Extract the size of the information to unpack */ /* Extract the size of the information to unpack */
memcpy( &size, tmp, sizeof(size_t) ); memcpy( &size, tmp, sizeof(size_t) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment