Skip to content

Commit

Permalink
Swtch traceback to --native in cugraph (#4663)
Browse files Browse the repository at this point in the history
In cudf we have observed a ~10% speed up of pytest suite execution by switching pytest traceback to `--native`:

```
currently:

102474 passed, 2117 skipped, 902 xfailed in 892.16s (0:14:52)

--tb=short:

102474 passed, 2117 skipped, 902 xfailed in 898.99s (0:14:58)

--tb=no:

102474 passed, 2117 skipped, 902 xfailed in 815.98s (0:13:35)

--tb=native:

102474 passed, 2117 skipped, 902 xfailed in 820.92s (0:13:40)
```

This PR makes similar change to `cugraph` repo.

xref: rapidsai/cudf#16851

Authors:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - Brad Rees (https://github.com/BradReesWork)

URL: #4663
  • Loading branch information
galipremsagar authored Sep 30, 2024
1 parent 4dfd3b3 commit 9b107b9
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions benchmarks/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ testpaths =

addopts =
--benchmark-columns="min, max, mean, stddev, outliers"
--tb=native

markers =
managedmem_on: RMM managed memory enabled
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2024, NVIDIA CORPORATION.

[pytest]
addopts = --tb=native
4 changes: 4 additions & 0 deletions python/cugraph-pyg/cugraph_pyg/tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2024, NVIDIA CORPORATION.

[pytest]
addopts = --tb=native
1 change: 1 addition & 0 deletions python/cugraph-pyg/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ addopts =
--benchmark-max-time=0
--benchmark-min-rounds=1
--benchmark-columns="mean, rounds"
--tb=native
## do not run slow tests/benchmarks by default
-m "not slow"

Expand Down
1 change: 1 addition & 0 deletions python/cugraph-service/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ addopts = --benchmark-warmup=off
--benchmark-max-time=0
--benchmark-min-rounds=1
--benchmark-columns="min, max, mean, rounds"
--tb=native
## for use with rapids-pytest-benchmark plugin
#--benchmark-gpu-disable
## for use with pytest-cov plugin
Expand Down
4 changes: 4 additions & 0 deletions python/cugraph-service/tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2024, NVIDIA CORPORATION.

[pytest]
addopts = --tb=native
1 change: 1 addition & 0 deletions python/cugraph/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ addopts =
--benchmark-max-time=0
--benchmark-min-rounds=1
--benchmark-columns="mean, rounds"
--tb=native
## do not run the slow tests/benchmarks by default
-m "not slow"
## for use with rapids-pytest-benchmark plugin
Expand Down
4 changes: 4 additions & 0 deletions python/nx-cugraph/nx_cugraph/tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2024, NVIDIA CORPORATION.

[pytest]
addopts = --tb=native
2 changes: 2 additions & 0 deletions python/pylibcugraph/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
[pytest]
markers =
cugraph_ops: Tests requiring cugraph-ops

addopts = --tb=native

0 comments on commit 9b107b9

Please sign in to comment.