Bugfixes for test failure (#1106)
- Bugfixes - Update test instructions using docker
Этот коммит содержится в:
1 родитель
953fd60e9b
Коммит
f45c8d5f6b
6 files changed
+33
-45
No files matched your search
@@ -372,12 +372,12 @@ class RocProfCompute:
|
||||
if not hasattr(self.__args, "name") or not self.__args.name:
|
||||
console_error("-n/--name is required")
|
||||
self.__args.path = str(Path(self.__args.path) / self.__args.name)
|
||||
# Add node name to workload path
|
||||
if self.__args.subpath == "node_name":
|
||||
self.__args.path = str(Path(self.__args.path) / socket.gethostname())
|
||||
# Add gpu model name to workload path
|
||||
elif self.__args.subpath == "gpu_model":
|
||||
self.__args.path = str(Path(self.__args.path) / self.__mspec.gpu_model)
|
||||
# Add node name to workload path
|
||||
if self.__args.subpath == "node_name":
|
||||
self.__args.path = str(Path(self.__args.path) / socket.gethostname())
|
||||
# OR, Add gpu model name to workload path
|
||||
elif self.__args.subpath == "gpu_model":
|
||||
self.__args.path = str(Path(self.__args.path) / self.__mspec.gpu_model)
|
||||
|
||||
# Create workload directory if it does not exist
|
||||
p = Path(self.__args.path)
|
||||
|
||||
@@ -32,7 +32,6 @@ from abc import abstractmethod
|
||||
from pathlib import Path
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import yaml
|
||||
|
||||
@@ -466,7 +465,7 @@ class RocProfCompute_Base:
|
||||
console_debug(output)
|
||||
|
||||
console_log("profiling", f"Current input file: {fname}")
|
||||
options = self.get_profiler_options(fname, self._soc)
|
||||
options = self.get_profiler_options(str(fname), self._soc)
|
||||
start_time = time.time()
|
||||
if self.__profiler == "rocprofv3" or self.__profiler == "rocprofiler-sdk":
|
||||
# Only 1-run case is permitted for attach/detach
|
||||
@@ -542,5 +541,5 @@ class RocProfCompute_Base:
|
||||
self._soc.post_profiling()
|
||||
|
||||
|
||||
def test_df_column_equality(df: pd.DataFrame) -> np.bool:
|
||||
def test_df_column_equality(df: pd.DataFrame) -> bool:
|
||||
return df.eq(df.iloc[:, 0], axis=0).all(1).all()
|
||||
+1
-1
@@ -70,7 +70,7 @@ class rocprofiler_sdk_profiler(RocProfCompute_Base):
|
||||
"ROCPROFILER_LIBRARY_CTOR": "1",
|
||||
"LD_PRELOAD": ":".join(ld_preload),
|
||||
"ROCP_TOOL_LIBRARIES": rocprofiler_sdk_tool_path,
|
||||
"LD_LIBRARY_PATH": rocm_libdir,
|
||||
"LD_LIBRARY_PATH": str(rocm_libdir),
|
||||
"ROCPROF_KERNEL_TRACE": "1",
|
||||
"ROCPROF_OUTPUT_FORMAT": args.format_rocprof_output,
|
||||
"ROCPROF_OUTPUT_PATH": f"{args.path}/out/pmc_1",
|
||||
|
||||
Reference in new issue
Block a user