MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_nvcc_root_path

Function get_nvcc_root_path

src/core/impl/utils/cuda_helper.cpp:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106std::string get_nvcc_root_path() {
107 auto nvcc_root_path = find_file_in_envs_with_intmd({ENV_PATH}, NVCC_EXE);
108 if (nvcc_root_path.empty()) {
109 return {};
110 } else {
111 auto idx = nvcc_root_path.rfind(PATH_SPLITER);
112 return nvcc_root_path.substr(0, idx + 1);
113 }
114}
115
116} // namespace
117

Callers 1

get_cuda_include_pathMethod · 0.85

Calls 2

emptyMethod · 0.45

Tested by

no test coverage detected