Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpu: when gpu is not compiled it, we need to reset the iparam NGPU to 0 #123

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,9 @@ parsec_context_t* setup_parsec(int argc, char **argv, int *iparam)
if(iparam[IPARAM_NGPUS] > 0 && iparam[IPARAM_VERBOSE] >= 3) {
parsec_setenv_mca_param( "device_show_statistics", "1", &environ );
}
#else
iparam[IPARAM_NGPUS] = 0;
#endif /* defined(DPLASMA_HAVE_CUDA) || defined(DPLASMA_HAVE_HIP) */
#if defined(DPLASMA_HAVE_CUDA)
if( nb_cuda_gpu > 0 ) {
dplasma_dtd_cuda_infoid = parsec_info_register(&parsec_per_stream_infos, "DPLASMA::CUDA::HANDLES",
Expand All @@ -732,7 +735,6 @@ parsec_context_t* setup_parsec(int argc, char **argv, int *iparam)
assert(-1 != dplasma_dtd_hip_infoid);
}
#endif
#endif /* defined(DPLASMA_HAVE_CUDA) || defined(DPLASMA_HAVE_HIP) */

print_arguments(iparam);
if(verbose > 2) TIME_PRINT(iparam[IPARAM_RANK], ("PaRSEC initialized\n"));
Expand Down
Loading