| 104 | } |
| 105 | |
| 106 | std::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 |
no test coverage detected