Unverified Commit 6fa3a12a authored by zhangyue's avatar zhangyue Committed by GitHub
Browse files

issue/48: p800支持

parent 1ab1e668
......@@ -675,6 +675,8 @@ def test():
device_type = DeviceType.DEVICE_TYPE_MOORE
elif sys.argv[1] == "--iluvatar":
device_type = DeviceType.DEVICE_TYPE_ILUVATAR
elif sys.argv[1] == "--kunlun":
device_type = DeviceType.DEVICE_TYPE_KUNLUN
else:
print(
"Usage: python jiuge.py [--cpu | --nvidia| --cambricon | --ascend | --metax | --moore] <path/to/model_dir> [n_device]"
......
......@@ -34,6 +34,7 @@ class DeviceType(ctypes.c_int):
DEVICE_TYPE_METAX = 4
DEVICE_TYPE_MOORE = 5
DEVICE_TYPE_ILUVATAR = 6
DEVICE_TYPE_KUNLUN = 7
class KVCacheCStruct(ctypes.Structure):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment