Mentions légales du service

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

Fix compilation with parsec and openmp for forcegpu and profile options

parent 15d3d3c7
No related branches found
No related tags found
1 merge request!228Add options `--forcegpu` and `--profile`
......@@ -64,6 +64,16 @@ install(
# Generate the Chameleon common for all possible precisions
# ---------------------------------------------------------
set(RUNTIME_COMMON_GENERATED "")
set(ZSRC
control/runtime_zprofiling.c
control/runtime_zlocality.c
)
precisions_rules_py(
RUNTIME_COMMON_GENERATED "${ZSRC}"
PRECISIONS "${CHAMELEON_PRECISION}"
TARGETDIR "control")
set(RUNTIME_COMMON
control/runtime_async.c
......
/**
*
* @file openmp/runtime_zlocality.c
*
* @copyright 2012-2017 The University of Tennessee and The University of
* Tennessee Research Foundation. All rights reserved.
* @copyright 2012-2020 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
* Univ. Bordeaux. All rights reserved.
*
***
*
* @brief Chameleon OpenMP CHAMELEON_Complex64_t kernel locality management
*
* @version 1.0.0
* @author Mathieu Faverge
* @date 2020-03-03
* @precisions normal z -> s d c
*
*/
#include "chameleon_openmp.h"
void RUNTIME_zlocality_allrestrict( uint32_t where )
{
(void)where;
chameleon_warning("RUNTIME_zlocality_allrestrict(Openmp)", "Kernel locality cannot be specified with Openmp");
}
void RUNTIME_zlocality_onerestrict( cham_tasktype_t kernel, uint32_t where )
{
(void)kernel;
(void)where;
chameleon_warning("RUNTIME_zlocality_onerestrict(Openmp)", "Kernel locality cannot be specified with Openmp");
}
void RUNTIME_zlocality_allrestore( )
{
chameleon_warning("RUNTIME_zlocality_allrestore(Openmp)", "Kernel locality cannot be specified with Openmp");
}
void RUNTIME_zlocality_onerestore( cham_tasktype_t kernel )
{
(void)kernel;
chameleon_warning("RUNTIME_zlocality_onerestore(Openmp)", "Kernel locality cannot be specified with Openmp");
}
/**
*
* @file openmp/runtime_zprofiling.c
*
* @copyright 2012-2017 The University of Tennessee and The University of
* Tennessee Research Foundation. All rights reserved.
* @copyright 2012-2020 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
* Univ. Bordeaux. All rights reserved.
*
***
*
* @brief Chameleon OpenMP CHAMELEON_Complex64_t kernel progiling
*
* @version 1.0.0
* @author Mathieu Faverge
* @date 2020-03-03
*
*/
#include "chameleon_openmp.h"
void RUNTIME_zdisplay_allprofile()
{
chameleon_warning("RUNTIME_zdisplay_allprofile(OpenMP)", "Profiling is not available with OpenMP");
}
void RUNTIME_zdisplay_oneprofile( cham_tasktype_t kernel )
{
(void)kernel;
chameleon_warning("RUNTIME_zdisplay_oneprofile(OpenMP)", "Profiling is not available with OpenMP\n");
}
......@@ -12,12 +12,12 @@
* @brief Chameleon PaRSEC CHAMELEON_Complex64_t kernel locality management
*
* @version 1.0.0
* @author Reazul Hoque
* @author Mathieu Faverge
* @date 2020-03-03
* @precisions normal z -> s d c
*
*/
#include "runtime/PaRSEC/include/chameleon_parsec.h"
#include "chameleon_parsec.h"
void RUNTIME_zlocality_allrestrict( uint32_t where )
{
......
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