Mentions légales du service

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

cmake: Add an option to enable debug mode in gered/hered

parent aa50966a
No related branches found
No related tags found
1 merge request!474Mixed Precision / Fix small issues in the conversion kernels for a better propagation of the information in distributed
......@@ -30,7 +30,8 @@
# @author Alycia Lisito
# @author Loris Lucido
# @author Nathan Précigout
# @date 2024-03-11
# @author Abel Calluaud
# @date 2024-07-17
#
###
cmake_minimum_required(VERSION 3.5)
......@@ -260,6 +261,8 @@ if (CHAMELEON_ENABLE_TESTING)
message("-- ${BoldGreen}CHAMELEON_ENABLE_TESTING is set to ON, turn it OFF to avoid building testing${ColourReset}")
endif()
option(CHAMELEON_DEBUG_GERED "Enable GERED debug" OFF)
# Option to activate or not simulation mode (use Simgrid through StarPU)
# ----------------------------------------------------------------------
cmake_dependent_option(CHAMELEON_SIMULATION
......
......@@ -11,13 +11,15 @@
*
* @brief Chameleon configuration file
*
* @version 1.2.0
* @version 1.3.0
* @author Florent Pruvost
* @author Mathieu Faverge
* @author Philippe Virouleau
* @author Raphael Boucherie
* @author Loris Lucido
* @date 2023-01-30
* @author Abel Calluaud
* @author Alycia Lisito
* @date 2024-07-17
*
*/
#ifndef CHAMELEON_CONFIG_H_HAS_BEEN_INCLUDED
......@@ -79,6 +81,9 @@
/* chameleon compute */
#cmakedefine CHAMELEON_COPY_DIAG
/* Debug options */
#cmakedefine CHAMELEON_DEBUG_GERED
/* Define the maximum batch size for kernels using it */
#define CHAMELEON_BATCH_SIZE @CHAMELEON_BATCH_SIZE@
......
......@@ -13,7 +13,7 @@
*
* @version 1.3.0
* @author Mathieu Faverge
* @date 2023-07-06
* @date 2024-07-17
* @precisions normal z -> d
*
*/
......@@ -22,8 +22,6 @@
#include "runtime_codelet_zc.h"
#include "runtime_codelet_z.h"
//#define CHAMELEON_DEBUG_GERED
void INSERT_TASK_zgered( const RUNTIME_option_t *options,
double threshold, double Anorm, int m, int n,
const CHAM_desc_t *A, int Am, int An )
......
......@@ -11,7 +11,7 @@
*
* @version 1.3.0
* @author Mathieu Faverge
* @date 2023-07-06
* @date 2024-07-17
* @precisions normal z -> d
*
*/
......@@ -20,8 +20,6 @@
#include "runtime_codelet_zc.h"
#include "runtime_codelet_z.h"
//#define CHAMELEON_DEBUG_GERST
void INSERT_TASK_zgerst( const RUNTIME_option_t *options,
int m, int n,
const CHAM_desc_t *A, int Am, int An )
......@@ -64,7 +62,7 @@ void INSERT_TASK_zgerst( const RUNTIME_option_t *options,
* Restore from half precision
*/
case ChamComplexHalf:
#if defined(CHAMELEON_DEBUG_GERST)
#if defined(CHAMELEON_DEBUG_GERED)
fprintf( stderr,
"[%2d] Convert back the tile ( %d, %d ) from half precision\n",
A->myrank, Am, An );
......@@ -86,7 +84,7 @@ void INSERT_TASK_zgerst( const RUNTIME_option_t *options,
#endif
case ChamComplexFloat:
#if defined(CHAMELEON_DEBUG_GERST)
#if defined(CHAMELEON_DEBUG_GERED)
fprintf( stderr,
"[%2d] Convert back the tile ( %d, %d ) from half precision\n",
A->myrank, Am, An );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment