mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-04 16:22:57 +08:00
[FIX]Fix Machete compile via ENABLE_MACHETE (#3727)
* add ENABLE_MACHETE * fix * revert * update * pre_commit * fix * fix --------- Co-authored-by: Ayakouji <yuhongh@qq.com> Co-authored-by: Jiang-Jia-Jun <163579578+Jiang-Jia-Jun@users.noreply.github.com> Co-authored-by: aquagull <hongyuh@qq.com>
This commit is contained in:
@@ -26,8 +26,14 @@ def get_sm_version():
|
||||
return cc
|
||||
|
||||
|
||||
_ENABLE_MACHETE = False
|
||||
if current_platform.is_cuda() and get_sm_version() == 90:
|
||||
from fastdeploy.model_executor.ops.gpu import machete_mm, machete_prepack_B
|
||||
try:
|
||||
from fastdeploy.model_executor.ops.gpu import machete_mm, machete_prepack_B
|
||||
|
||||
_ENABLE_MACHETE = True
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def get_pack_factor(num_bits):
|
||||
|
Reference in New Issue
Block a user