Skip to content

Commit 7618bf1

Browse files
authored
Enable nvComp for SBSA platform (#5889)
- enables building with nvComp for SBSA platform - enables inflate operator tests for SBSA platform Signed-off-by: Janusz Lisiecki <[email protected]>
1 parent 4250f34 commit 7618bf1

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

CMakeLists.txt

+2-7
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,8 @@ else()
143143
unset(BUILD_CUFILE CACHE)
144144
endif()
145145

146-
if(NOT (${ARCH} MATCHES "aarch64"))
147-
cmake_dependent_option(BUILD_NVCOMP "Build with nvCOMP support" OFF
148-
"NOT BUILD_DALI_NODEPS" OFF)
149-
else()
150-
# make sure that even if set by -DBUILD_NVCOMP, it will be unset as not supported
151-
unset(BUILD_NVCOMP CACHE)
152-
endif()
146+
cmake_dependent_option(BUILD_NVCOMP "Build with nvCOMP support" OFF
147+
"NOT BUILD_DALI_NODEPS" OFF)
153148

154149
if (BUILD_DALI_NODEPS)
155150
set(BUILD_OPENCV OFF)

dali/test/python/checkpointing/test_dali_stateless_operators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ def numba_pipe():
791791

792792

793793
@has_operator("experimental.inflate")
794-
@restrict_platform(min_compute_cap=6.0, platforms=["x86_64"])
794+
@restrict_platform(min_compute_cap=6.0)
795795
@stateless_signed_off("experimental.inflate")
796796
def test_inflate_stateless():
797797
import lz4.block

dali/test/python/operator_1/test_inflate.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def pipeline():
9898

9999

100100
@has_operator("experimental.inflate")
101-
@restrict_platform(min_compute_cap=6.0, platforms=["x86_64"])
101+
@restrict_platform(min_compute_cap=6.0)
102102
def test_sample_inflate():
103103
seed = 42
104104
for batch_size in [1, 64, 348]:
@@ -135,7 +135,7 @@ def pipeline():
135135

136136

137137
@has_operator("experimental.inflate")
138-
@restrict_platform(min_compute_cap=6.0, platforms=["x86_64"])
138+
@restrict_platform(min_compute_cap=6.0)
139139
def test_scalar_shape():
140140
largest_prime_smaller_than_2_to_16 = 65521
141141
prime_larger_than_2_to_16 = 262147
@@ -241,7 +241,7 @@ def pipeline():
241241

242242

243243
@has_operator("experimental.inflate")
244-
@restrict_platform(min_compute_cap=6.0, platforms=["x86_64"])
244+
@restrict_platform(min_compute_cap=6.0)
245245
def test_chunks():
246246
seed = 42
247247
batch_sizes = [1, 9, 31]
@@ -278,7 +278,7 @@ def test_chunks():
278278

279279

280280
@has_operator("experimental.inflate")
281-
@restrict_platform(min_compute_cap=6.0, platforms=["x86_64"])
281+
@restrict_platform(min_compute_cap=6.0)
282282
@params(
283283
{"chunk_offsets": []},
284284
{"chunk_sizes": []},
@@ -312,7 +312,7 @@ def _test_validation(pipeline, error_glob, kwargs=None):
312312

313313

314314
@has_operator("experimental.inflate")
315-
@restrict_platform(min_compute_cap=6.0, platforms=["x86_64"])
315+
@restrict_platform(min_compute_cap=6.0)
316316
def test_validation():
317317
@pipeline_def
318318
def pipeline_2d_shape():

dali/test/python/test_dali_variable_batch_size.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ def video_decoder_pipe(max_batch_size, input_data, device):
13451345

13461346

13471347
@has_operator("experimental.inflate")
1348-
@restrict_platform(min_compute_cap=6.0, platforms=["x86_64"])
1348+
@restrict_platform(min_compute_cap=6.0)
13491349
def test_inflate():
13501350
import lz4.block
13511351

0 commit comments

Comments
 (0)