Skip to content

Commit

Permalink
Fix gpu name (#415)
Browse files Browse the repository at this point in the history
* fix gpu name bug when on different gpus

* update version to 3.0.1
  • Loading branch information
godweiyang committed Nov 2, 2022
1 parent 07ff5a2 commit 5be2968
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lightseq/__init__.py
@@ -1 +1 @@
__version__ = "3.0.0"
__version__ = "3.0.1"
2 changes: 1 addition & 1 deletion lightseq/csrc/kernels/cuda_util.cu
Expand Up @@ -312,7 +312,7 @@ std::string getGPUName() {
return name;
}
}
throw std::runtime_error("Not support this kind of GPU!");
return "";
}

void print_time_duration(
Expand Down
2 changes: 1 addition & 1 deletion lightseq/inference/tools/util.cc.cu
Expand Up @@ -366,7 +366,7 @@ std::string getGPUName() {
return name;
}
}
throw std::runtime_error("Not support this kind of GPU!");
return "";
}

} // namespace cuda
Expand Down

0 comments on commit 5be2968

Please sign in to comment.