提交 f78b60ec 编写于 作者: M Megvii Engine Team

feat(bazel): make bazel gensass depend on cuda toolchain version automatically

GitOrigin-RevId: 9433f21a918fea46c8c409f7b173fdac480fc752
上级 f48227c0
......@@ -88,7 +88,8 @@ void cuda::__throw_cuda_driver_error__(CUresult err, const char* msg) {
const char* err_str = nullptr;
cuGetErrorName(err, &err_str);
err_str = err_str ? err_str : "unknown error";
auto s = ssprintf("cuda driver error %d(%s) occurred; expr: %s", int(err), err_str, msg);
auto s = ssprintf(
"cuda driver error %d(%s) occurred; expr: %s", int(err), err_str, msg);
megdnn_throw(s.c_str());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册