Skip to content

Commit 65573fc

Browse files
committed
Update get_parameter_min_max_value API
1 parent c86d5b4 commit 65573fc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

cuda_bindings/tests/test_cufile.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,8 +1950,6 @@ def test_set_stats_level():
19501950
except Exception as e:
19511951
logging.info(f"Correctly caught error for invalid stats level: {e}")
19521952

1953-
1954-
19551953
finally:
19561954
# Reset cuFile statistics to clear all counters
19571955
cufile.stats_reset()
@@ -1982,12 +1980,8 @@ def test_get_parameter_min_max_value():
19821980
# Test with poll threshold parameter
19831981
param = cufile.SizeTConfigParameter.POLLTHRESHOLD_SIZE_KB
19841982

1985-
# Allocate ctypes variables for min and max values
1986-
min_value = ctypes.c_size_t()
1987-
max_value = ctypes.c_size_t()
1988-
19891983
# Get min/max values
1990-
cufile.get_parameter_min_max_value(param, ctypes.addressof(min_value), ctypes.addressof(max_value))
1984+
min_value, max_value = cufile.get_parameter_min_max_value(param)
19911985

19921986
# Verify that min <= max and both are reasonable values
19931987
assert min_value.value >= 0, f"Invalid min value: {min_value.value}"

0 commit comments

Comments
 (0)