Mentions légales du service

Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • solverstack/chameleon
  • lvilleve/chameleon-toto
  • jcletort/chameleon
  • thibault/chameleon
  • tcojean/chameleon
  • sylvand/chameleon
  • viroulea/chameleon
  • x-ltac/chameleon
  • agullo/chameleon
  • glucas/chameleon
  • pswartva/chameleon
  • aguermou1/chameleon
  • eyrauddu/chameleon
  • mverite/chameleon
  • alisito/chameleon
  • furmento/chameleon
  • fpruvost/chameleon
  • ahourcau/chameleon
  • bnicolas/chameleon
  • pesterie/chameleon
  • mmarcos/chameleon
21 results
Show changes
Commits on Source (2)
......@@ -103,6 +103,13 @@ int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker)
# endif
#endif
#if !defined(CHAMELEON_USE_CUDA)
if ( ncudas != 0 ) {
chameleon_warning("CHAMELEON_Init", "CHAMELEON_USE_CUDA is not defined, ncudas is forced to 0");
ncudas = 0;
}
#endif
RUNTIME_init( chamctxt, ncpus, ncudas, nthreads_per_worker );
#if defined(CHAMELEON_USE_MPI)
......
......@@ -730,20 +730,12 @@ main(int argc, char *argv[]) {
int stop = 5000;
int step = 500;
int iparam[IPARAM_SIZEOF];
int return_code;
set_iparam_default(iparam);
parse_arguments(&argc, &argv, iparam, &start, &stop, &step);
#if !defined(CHAMELEON_USE_CUDA)
if (iparam[IPARAM_NCUDAS] != 0){
fprintf(stderr, "ERROR: CHAMELEON_USE_CUDA is not defined. "
"The number of CUDA devices must be set to 0 (--gpus=0).\n");
return EXIT_FAILURE;
}
#endif
int return_code;
/* Initialize CHAMELEON */
CHAMELEON_Init( iparam[IPARAM_THRDNBR],
iparam[IPARAM_NCUDAS] );
......