|
6 | 6 | * reserved. |
7 | 7 | * Copyright (c) 2017-2022 Amazon.com, Inc. or its affiliates. |
8 | 8 | * All Rights reserved. |
9 | | - * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights reserved. |
| 9 | + * Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All Rights reserved. |
10 | 10 | * $COPYRIGHT$ |
11 | 11 | * |
12 | 12 | * Additional copyrights may follow |
|
17 | 17 | #include "opal_config.h" |
18 | 18 |
|
19 | 19 | #include <stdio.h> |
20 | | -#include <dlfcn.h> |
21 | 20 |
|
22 | 21 | #include "opal/mca/dl/base/base.h" |
23 | 22 | #include "opal/runtime/opal_params.h" |
24 | 23 | #include "accelerator_rocm.h" |
25 | 24 |
|
26 | | -int opal_accelerator_rocm_memcpy_async = 1; |
| 25 | +int opal_accelerator_rocm_memcpy_async = 0; |
27 | 26 | int opal_accelerator_rocm_verbose = 0; |
28 | 27 | size_t opal_accelerator_rocm_memcpyD2H_limit=1024; |
29 | 28 | size_t opal_accelerator_rocm_memcpyH2D_limit=1048576; |
@@ -149,9 +148,9 @@ static int accelerator_rocm_component_register(void) |
149 | 148 | &opal_accelerator_rocm_memcpyH2D_limit); |
150 | 149 |
|
151 | 150 | /* Use this flag to test async vs sync copies */ |
152 | | - opal_accelerator_rocm_memcpy_async = 1; |
| 151 | + opal_accelerator_rocm_memcpy_async = 0; |
153 | 152 | (void) mca_base_var_register("ompi", "mpi", "accelerator_rocm", "memcpy_async", |
154 | | - "Set to 0 to force using hipMemcpy instead of hipMemcpyAsync", |
| 153 | + "Set to 1 to force using hipMemcpyAsync instead of hipMemcpy", |
155 | 154 | MCA_BASE_VAR_TYPE_INT, NULL, 0, 0, OPAL_INFO_LVL_9, |
156 | 155 | MCA_BASE_VAR_SCOPE_READONLY, &opal_accelerator_rocm_memcpy_async); |
157 | 156 |
|
|
0 commit comments