Home
last modified time | relevance | path

Searched full:source_path (Results 1 – 25 of 72) sorted by relevance

123

/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/profiler/parser/
Dminddata_parser.py91 def execute(source_path, output_path, job_id, device_id): argument
96 source_path (str): the source file path, eg: profiler.
101 if MinddataParser._is_legacy_aicpu_data(source_path, job_id):
104 … MinddataParser._execute_legacy(os.path.join(source_path, job_id), output_path, device_id)
107 MinddataParser._execute(source_path, output_path, job_id, device_id)
110 def _is_legacy_aicpu_data(source_path, job_id) -> bool: argument
115 source_path (str): the source file path, eg: profiler.
120 legacy_files = glob.glob(os.path.join(source_path, job_id, "data", "DATA_PREPROCESS.*"))
124 def _execute(source_path, output_path, job_id, device_id): argument
129 source_path (str): the source file path, eg: profiler.
[all …]
/third_party/python/Lib/test/
Dtest_py_compile.py57 self.source_path = os.path.join(self.directory, '_test.py')
58 self.pyc_path = self.source_path + 'c'
59 self.cache_path = importlib.util.cache_from_source(self.source_path)
62 # current working directory path and the 'self.source_path' might be
65 drive = os.path.splitdrive(self.source_path)[0]
68 with open(self.source_path, 'w') as file:
77 py_compile.compile(self.source_path, self.pyc_path)
91 py_compile.compile(self.source_path, self.pyc_path)
99 py_compile.compile(self.source_path, os.devnull)
102 py_compile.compile(self.source_path)
[all …]
Dtest_compileall.py57 self.source_path = os.path.join(self.directory, '_test.py')
58 self.bc_path = importlib.util.cache_from_source(self.source_path)
59 with open(self.source_path, 'w', encoding="utf-8") as file:
63 shutil.copyfile(self.source_path, self.source_path2)
67 shutil.copyfile(self.source_path, self.source_path3)
80 mtime = int(os.stat(self.source_path).st_mtime)
89 os.utime(self.source_path, (2**32 - 1, 2**32 - 1))
93 self.assertTrue(compileall.compile_file(self.source_path))
99 os.utime(self.source_path, (2**35, 2**35))
103 self.assertTrue(compileall.compile_file(self.source_path))
[all …]
Dtest_modulefinder.py385 source_path = base_path + importlib.machinery.SOURCE_SUFFIXES[0]
387 with open_file(source_path) as file:
389 py_compile.compile(source_path, cfile=bytecode_path)
390 os.remove(source_path)
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/profiler/parser/ascend_analysis/
Dfwk_file_parser.py36 def __init__(self, source_path: str, rank_id: int):
38 source_path: The path of PROF_* directory
42 self.__init_framework_path(source_path)
75 def __init_framework_path(self, source_path: str):
77 source_path = validate_and_normalize_path(source_path)
78 if not os.path.exists(source_path):
79 raise FileNotFoundError("Input source_path does not exist!")
80 device_name = os.path.basename(source_path)
81 if not device_name.startswith("device") and not os.path.isdir(source_path):
82 raise RuntimeError("Input source_path is invalid!")
[all …]
Dprofiler_info_parser.py42 def init_source_path(cls, source_path: str):
44 source_path = validate_and_normalize_path(source_path)
45 prof_path = os.path.dirname(source_path)
46 dir_name = os.path.basename(source_path)
47 if not dir_name.startswith("device") or not os.path.exists(source_path):
Dfwk_cann_parser.py35 def __init__(self, source_path: str, msprof_data: List, rank_id: int, step_list=None):
36 source_path = validate_and_normalize_path(source_path)
37 ProfilerInfoParser.init_source_path(source_path)
39 fwk_parser = FwkFileParser(source_path, rank_id)
Dfile_manager.py132 def get_csv_file_list_by_start_name(cls, source_path: str, start_name: str):
135 for file_name in os.listdir(source_path):
137 file_list.append(os.path.join(source_path, file_name))
/third_party/glfw/CMake/
DGenerateMappings.cmake5 set(source_path "${CMAKE_CURRENT_BINARY_DIR}/gamecontrollerdb.txt") variable
13 file(DOWNLOAD "${source_url}" "${source_path}"
24 file(STRINGS "${source_path}" lines)
47 file(REMOVE "${source_path}")
/third_party/unity/examples/example_3/
Dtarget_gcc_32.yml6 source_path: &source_path 'src/'
19 - *source_path
/third_party/rust/rust/tests/ui/test-attrs/
Dtests-listing-format-json.run.stdout2 …discovered", "name": "a_test", "ignore": false, "ignore_message": "", "source_path": "$DIR/tests-l…
3 …discovered", "name": "m_test", "ignore": false, "ignore_message": "", "source_path": "$DIR/tests-l…
4 …": "z_test", "ignore": true, "ignore_message": "not yet implemented", "source_path": "$DIR/tests-l…
/third_party/skia/third_party/externals/angle2/tools/android/modularization/convenience/
Dlookup_dep.py215 source_path = pathlib.Path(source_line.strip())
216 java_class = self._parse_full_java_class(source_path)
288 def _parse_full_java_class(source_path: pathlib.Path) -> str:
290 if source_path.suffix != '.java':
291 logging.warning(f'"{source_path}" does not have the .java suffix')
294 directory_path: pathlib.Path = source_path.parent
303 logging.debug(f'File {source_path} not in a subdir of "org" or "com", '
308 class_name = source_path.stem
/third_party/opencl-headers/tests/
DCMakeLists.txt30 set(SOURCE_PATH "${CPP_SOURCE_PATH}") variable
33 set(SOURCE_PATH "../${SOURCE}") variable
40 add_executable(${TEST_EXE} "${SOURCE_PATH}")
/third_party/python/Lib/distutils/command/
Dcheck.py126 source_path = self.distribution.script_name or 'setup.py'
132 reporter = SilentReporter(source_path,
140 document = nodes.document(settings, reporter, source=source_path)
141 document.note_source(source_path, -1)
/third_party/curl/projects/
Dbuild-openssl.bat35 set SOURCE_PATH= variable
245 set "SOURCE_PATH=%CD%"
258 set "TMP_BUILD_PATH=%SOURCE_PATH%"
259 set "TMP_INSTALL_PATH=%SOURCE_PATH%"
261 set "TMP_BUILD_PATH=%SOURCE_PATH%\build\tmp_build"
262 set "TMP_INSTALL_PATH=%SOURCE_PATH%\build\tmp_install"
441 perl "%SOURCE_PATH%\Configure" %options% "--prefix=%TMP_INSTALL_PATH%"
502 cd /d "%SOURCE_PATH%" || (echo Error: Failed cd source & exit /B 1)
572 cd /d "%SOURCE_PATH%" || (echo Error: Failed cd source & exit /B 1)
642 if not "%SOURCE_PATH%" == "%TMP_BUILD_PATH%" (
[all …]
/third_party/skia/tools/
Dimgcvt.cpp22 const char* source_path = argc > 1 ? argv[1] : nullptr; in main() local
23 if (!source_path) { in main()
40 auto blob = SkData::MakeFromFileName(source_path); in main()
76 SkDebugf("Couldn't decode %s as an SkImage or an ICC profile.\n", source_path); in main()
/third_party/skia/m133/tools/
Dimgcvt.cpp24 const char* source_path = argc > 1 ? argv[1] : nullptr; in main() local
25 if (!source_path) { in main()
42 auto blob = SkData::MakeFromFileName(source_path); in main()
78 SkDebugf("Couldn't decode %s as an SkImage or an ICC profile.\n", source_path); in main()
/third_party/python/Lib/importlib/
D_bootstrap_external.py561 source_path = source_from_cache(bytecode_path)
563 source_path = bytecode_path[:-1]
564 return source_path if _path_isfile(source_path) else bytecode_path
727 def _compile_bytecode(data, name=None, bytecode_path=None, source_path=None): argument
732 if source_path is not None:
733 _imp._fix_co_filename(code, source_path)
972 def _cache_bytecode(self, source_path, cache_path, data): argument
1014 source_path = self.get_filename(fullname)
1021 bytecode_path = cache_from_source(source_path)
1026 st = self.path_stats(source_path)
[all …]
/third_party/json/tools/amalgamate/
Damalgamate.py45 # Prepends self.source_path to file_path if needed.
48 file_path = os.path.join(self.source_path, file_path)
72 self.source_path = args.source_path
288 argsparser.add_argument("-s", "--source", dest="source_path",
/third_party/typescript/
Dcompile_typescript.py50 source_path = args[0]
52 run_pack(source_path, dest_out_path)
/third_party/ffmpeg/ffbuild/
Dpkgconfig_generate.sh47 includedir=${source_path}
53 includedir=${source_path}
/third_party/rust/rust/library/std/src/sys/unix/kernel_copy/
Dtests.rs14 let source_path = tmp_path.join("copy-spec.source"); in copy_specialization() localVariable
23 .open(&source_path)?; in copy_specialization()
62 let rm1 = crate::fs::remove_file(source_path); in copy_specialization()
71 let source_path = tmp_path.join("copies_append_mode.source"); in copies_append_mode_sink() localVariable
74 OpenOptions::new().create(true).truncate(true).write(true).read(true).open(&source_path)?; in copies_append_mode_sink()
/third_party/gn/src/gn/
Dxcode_object.cc594 const std::string& source_path) { in AddSourceFile() argument
596 DCHECK(!source_path.empty()); in AddSourceFile()
637 return group->AddSourceFile(navigator_path.substr(sep + 1), source_path); in AddSourceFile()
696 PBXMainGroup::PBXMainGroup(const std::string& source_path) in PBXMainGroup() argument
697 : PBXGroup(source_path, std::string()) {} in PBXMainGroup()
778 const std::string& source_path, in PBXProject() argument
781 main_group_ = std::make_unique<PBXMainGroup>(source_path); in PBXProject()
792 const std::string& source_path) { in AddSourceFileToIndexingTarget() argument
796 AddSourceFile(navigator_path, source_path, target_for_indexing_); in AddSourceFileToIndexingTarget()
800 const std::string& source_path, in AddSourceFile() argument
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/profiler/
Dprofiling.py1244 def _minddata_aicpu_analyse(self, source_path, job_id): argument
1252 MinddataParser.execute(source_path, self._output_path, job_id, store_id)
1331 …def _ascend_timeline_analyse(self, op_summary, steptrace, source_path, mindstudio_profiler_output)… argument
1335 …timeline_analyser = AscendTimelineGenerator(self._output_path, source_path, mindstudio_profiler_ou…
1399 def _ascend_ms_analyze(self, source_path): argument
1427 os.path.join(source_path, os.path.pardir, 'mindstudio_profiler_output'))
1434 self._ascend_graph_cluster_analyse(source_path, ascend_profiler_output_path)
1435 self._ascend_graph_communicate_analyse(source_path, ascend_profiler_output_path)
1436 AscendIntegrateGenerator(source_path, ascend_profiler_output_path).parse()
1437 …AscendMemoryGenerator(self._output_path, self._rank_id, source_path, ascend_profiler_output_path).…
[all …]
/third_party/rust/rust/tests/ui/proc-macro/auxiliary/
Dmacro-only-syntax.rs86 let source_path = span.source_file().path(); in check_useful_span() localVariable
87 let filename = source_path.components().last().unwrap(); in check_useful_span()

123