-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cd63fe
commit bab0935
Showing
14 changed files
with
71 additions
and
27,056 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (C) 2021-2023 Modin authors | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from libc.stdint cimport uint8_t | ||
cimport memory | ||
|
||
def parallel_memcopy(const uint8_t[:] src, uint8_t[:] dst, int memcopy_threads): | ||
""" | ||
Multithreaded data copying between buffers. | ||
Parameters | ||
---------- | ||
src : uint8_t[:] | ||
Copied data. | ||
dst : uint8_t[:] | ||
Buffer for writing. | ||
memcopy_threads : int | ||
Number of threads to write. | ||
""" | ||
with nogil: | ||
memory.parallel_memcopy(&dst[0], | ||
&src[0], | ||
len(src), | ||
64, | ||
memcopy_threads) |
6 changes: 6 additions & 0 deletions
6
unidist/ext_modules/memory/memory.cpp → .../core/backends/mpi/core/memory/memory.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
unidist/ext_modules/memory/memory.h → ...st/core/backends/mpi/core/memory/memory.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
unidist/ext_modules/memory/memory.pxd → .../core/backends/mpi/core/memory/memory.pxd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.