Skip to content
Snippets Groups Projects
Verified Commit 5868b5ec authored by baptiste.coudray's avatar baptiste.coudray
Browse files

Fixed gpu selection -_-

parent b6083569
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ int main(int argc, char *argv[]) { ...@@ -83,7 +83,7 @@ int main(int argc, char *argv[]) {
#endif #endif
char device[4] = {0}; char device[4] = {0};
snprintf(device, sizeof(device), "#%d", my_rank % nb_devices); snprintf(device, sizeof(device), "#%d", my_rank % nb_devices);
futhark_context_config_set_device(fut_config, "AMD"); futhark_context_config_set_device(fut_config, device);
#endif #endif
struct futhark_context *fut_context = futhark_context_new(fut_config); struct futhark_context *fut_context = futhark_context_new(fut_config);
...@@ -103,7 +103,10 @@ int main(int argc, char *argv[]) { ...@@ -103,7 +103,10 @@ int main(int argc, char *argv[]) {
MPI_Type_commit(&lbm_type); MPI_Type_commit(&lbm_type);
struct dispatch_context *disp_context = dispatch_context_new(lbm_dimensions, lbm_type, 3); struct dispatch_context *disp_context = dispatch_context_new(lbm_dimensions, lbm_type, 3);
dispatch_context_print(disp_context);
chunk_info_t ci = get_chunk_info(disp_context); chunk_info_t ci = get_chunk_info(disp_context);
chunk_info_print(&ci);
MPI_Abort(MPI_COMM_WORLD, 1);
init_chunk_lbm(&ci); init_chunk_lbm(&ci);
for (int i = 0; i < N_MEASURES; ++i) { for (int i = 0; i < N_MEASURES; ++i) {
......
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