Skip to content

Commit

Permalink
[SUBMODULE] update submodule to latest (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed Sep 19, 2018
1 parent 8c5d3ef commit c4421f5
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion HalideIR
Submodule HalideIR updated 1 files
+20 −0 src/tvm/node.h
2 changes: 1 addition & 1 deletion dlpack
Submodule dlpack updated 1 files
+19 −2 include/dlpack/dlpack.h
4 changes: 0 additions & 4 deletions include/tvm/runtime/c_runtime_api.h
Expand Up @@ -62,11 +62,7 @@ typedef int64_t tvm_index_t;
typedef enum {
kDLAOCL = 5,
kDLSDAccel = 6,
kDLVulkan = 7,
kOpenGL = 11,
// Extension DRAM type, used for quickly test extension device
// The device api can differ depending on the xpu driver registered.
kExtDev = 12,
// AddExtraTVMType which is not in DLPack here
} TVMDeviceExtType;

Expand Down
2 changes: 1 addition & 1 deletion src/codegen/build_module.cc
Expand Up @@ -102,7 +102,7 @@ Target CreateTarget(const std::string& target_name,
} else if (target_name == "stackvm") {
t->device_type = kDLCPU;
} else if (target_name == "ext_dev") {
t->device_type = kExtDev;
t->device_type = kDLExtDev;
} else {
LOG(ERROR) << "Unknown target name " << target_name;
return target::stackvm();
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/c_runtime_api.cc
Expand Up @@ -38,7 +38,7 @@ inline std::string DeviceName(int type) {
case kDLVPI: return "vpi";
case kDLROCM: return "rocm";
case kOpenGL: return "opengl";
case kExtDev: return "ext_dev";
case kDLExtDev: return "ext_dev";
default: LOG(FATAL) << "unknown type =" << type; return "Unknown";
}
}
Expand Down
3 changes: 1 addition & 2 deletions vta/src/device_api.cc
Expand Up @@ -72,8 +72,7 @@ class VTADeviceAPI final : public DeviceAPI {

struct VTAWorkspacePool : public WorkspacePool {
VTAWorkspacePool() :
WorkspacePool(static_cast<DLDeviceType>(kExtDev),
VTADeviceAPI::Global()) {}
WorkspacePool(kDLExtDev, VTADeviceAPI::Global()) {}
};

void* VTADeviceAPI::AllocWorkspace(TVMContext ctx, size_t size, TVMType type_hint) {
Expand Down

0 comments on commit c4421f5

Please sign in to comment.