Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.0.15"
__version__ = "0.0.16"

def setFixtureParamNames(request, orderedParamNameList):
"""
Expand Down
15 changes: 12 additions & 3 deletions rapids_pytest_benchmark/rapids_pytest_benchmark/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,24 @@ def gpu_rounds(self):

@pytest_benchmark_utils.cached_property
def gpu_mem(self):
return max([i[0] for i in self.gpuData])
if len(self.gpuData) > 0:
return max([i[0] for i in self.gpuData])
else:
return 0

@pytest_benchmark_utils.cached_property
def gpu_util(self):
return max([i[1] for i in self.gpuData])
if len(self.gpuData) > 0:
return max([i[1] for i in self.gpuData])
else:
return 0

@pytest_benchmark_utils.cached_property
def gpu_leaked_mem(self):
return max([i[2] for i in self.gpuData])
if len(self.gpuData) > 0:
return max([i[2] for i in self.gpuData])
else:
return 0

class GPUBenchmarkFixture(pytest_benchmark_fixture.BenchmarkFixture):

Expand Down