|
1 | 1 | /* |
2 | 2 | * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights reserved. |
3 | | - * Copyright (c) 2023-2024 Triad National Security, LLC. All rights reserved. |
| 3 | + * Copyright (c) 2023-2025 Triad National Security, LLC. All rights reserved. |
4 | 4 | * $COPYRIGHT$ |
5 | 5 | * |
6 | 6 | * Additional copyrights may follow |
@@ -453,8 +453,7 @@ static int mca_accelerator_ze_memcpy_async(int dest_dev_id, int src_dev_id, void |
453 | 453 | ze_result_t zret; |
454 | 454 | opal_accelerator_ze_stream_t *ze_stream = NULL; |
455 | 455 |
|
456 | | - if (NULL == stream || NULL == src || |
457 | | - NULL == dest || size < 0) { |
| 456 | + if (NULL == stream || NULL == src || NULL == dest) { |
458 | 457 | return OPAL_ERR_BAD_PARAM; |
459 | 458 | } |
460 | 459 | if (0 == size) { |
@@ -489,7 +488,7 @@ static int mca_accelerator_ze_memcpy(int dest_dev_id, int src_dev_id, void *dest |
489 | 488 |
|
490 | 489 | opal_accelerator_ze_stream_t *ze_stream = NULL; |
491 | 490 |
|
492 | | - if (NULL == src || NULL == dest || size <0) { |
| 491 | + if (NULL == src || NULL == dest) { |
493 | 492 | return OPAL_ERR_BAD_PARAM; |
494 | 493 | } |
495 | 494 | if (0 == size) { |
@@ -581,6 +580,14 @@ static int mca_accelerator_ze_memmove_async(int dest_dev_id, int src_dev_id, voi |
581 | 580 | return OPAL_ERR_NOT_IMPLEMENTED; |
582 | 581 | } |
583 | 582 |
|
| 583 | +static int mca_accelerator_ze_sync_stream(opal_accelerator_stream_t *stream) |
| 584 | +{ |
| 585 | + /* |
| 586 | + * TODO |
| 587 | + */ |
| 588 | + return OPAL_ERR_NOT_IMPLEMENTED; |
| 589 | +} |
| 590 | + |
584 | 591 | static int mca_accelerator_ze_mem_alloc(int dev_id, void **ptr, size_t size) |
585 | 592 | { |
586 | 593 | ze_result_t zret; |
@@ -852,15 +859,6 @@ static int mca_accelerator_ze_get_buffer_id(int dev_id, const void *addr, opal_a |
852 | 859 | return OPAL_SUCCESS; |
853 | 860 | } |
854 | 861 |
|
855 | | - |
856 | | -static int mca_accelerator_ze_wait_stream(opal_accelerator_stream_t *stream) |
857 | | -{ |
858 | | - /* |
859 | | - * TODO |
860 | | - */ |
861 | | - return OPAL_ERR_NOT_IMPLEMENTED; |
862 | | -} |
863 | | - |
864 | 862 | static int mca_accelerator_ze_get_num_devices(int *num_devices) |
865 | 863 | { |
866 | 864 | /* |
|
0 commit comments