Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Jul 28, 2023
1 parent cd192a8 commit cf58d85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions python/kvikio/_lib/libnvcomp_ll.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class nvCompBatchAlgorithm(ABC):
self,
size_t batch_size,
size_t max_uncompressed_chunk_bytes,
) -> (nvcompStatus_t, size_t):
) -> tuple[nvcompStatus_t, size_t]:
"""Algorithm-specific implementation."""
...

Expand Down Expand Up @@ -312,7 +312,7 @@ class nvCompBatchAlgorithmLZ4(nvCompBatchAlgorithm):
self,
size_t batch_size,
size_t max_uncompressed_chunk_bytes,
) -> (nvcompStatus_t, size_t):
) -> tuple[nvcompStatus_t, size_t]:
cdef size_t temp_bytes = 0

err = nvcompBatchedLZ4CompressGetTempSize(
Expand Down Expand Up @@ -434,7 +434,7 @@ class nvCompBatchAlgorithmGdeflate(nvCompBatchAlgorithm):
self,
size_t batch_size,
size_t max_uncompressed_chunk_bytes,
) -> (nvcompStatus_t, size_t):
) -> tuple[nvcompStatus_t, size_t]:
cdef size_t temp_bytes = 0

err = nvcompBatchedGdeflateCompressGetTempSize(
Expand Down Expand Up @@ -552,7 +552,7 @@ class nvCompBatchAlgorithmZstd(nvCompBatchAlgorithm):
self,
size_t batch_size,
size_t max_uncompressed_chunk_bytes,
) -> (nvcompStatus_t, size_t):
) -> tuple[nvcompStatus_t, size_t]:
cdef size_t temp_bytes = 0

err = nvcompBatchedZstdCompressGetTempSize(
Expand Down Expand Up @@ -670,7 +670,7 @@ class nvCompBatchAlgorithmSnappy(nvCompBatchAlgorithm):
self,
size_t batch_size,
size_t max_uncompressed_chunk_bytes,
) -> (nvcompStatus_t, size_t):
) -> tuple[nvcompStatus_t, size_t]:
cdef size_t temp_bytes = 0

err = nvcompBatchedSnappyCompressGetTempSize(
Expand Down
2 changes: 0 additions & 2 deletions python/kvikio/_lib/nvcomp_cxx_api.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ cdef extern from "nvcomp/nvcompManager.hpp" namespace 'nvcomp':
size_t uncompressed_buffer_size) except +
nvcompStatus_t* get_status() const
CompressionConfig(CompressionConfig& other)
CompressionConfig& operator=(CompressionConfig&& other) except +
CompressionConfig& operator=(const CompressionConfig& other) except +

cdef cppclass DecompressionConfig "nvcomp::DecompressionConfig":
Expand All @@ -82,7 +81,6 @@ cdef extern from "nvcomp/nvcompManager.hpp" namespace 'nvcomp':
DecompressionConfig(PinnedPtrPool[nvcompStatus_t]& pool) except +
nvcompStatus_t* get_status() const
DecompressionConfig(DecompressionConfig& other)
DecompressionConfig& operator=(DecompressionConfig&& other) except +
DecompressionConfig& operator=(const DecompressionConfig& other) except +

cdef cppclass nvcompManagerBase "nvcomp::nvcompManagerBase":
Expand Down

0 comments on commit cf58d85

Please sign in to comment.