Skip to content
Snippets Groups Projects
Commit 94b309a1 authored by Liang ZOU's avatar Liang ZOU Committed by Tianqi Chen
Browse files

add c backend to CreateTarget (#2256)

parent 50cfd3cd
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ Target CreateTarget(const std::string& target_name,
}
t->device_type = kDLCPU;
t->thread_warp_size = 1;
if (target_name == "llvm") {
if (target_name == "c" || target_name == "llvm") {
t->keys_array.push_back(ir::StringImm::make("cpu"));
} else if (target_name == "cuda" || target_name == "nvptx") {
t->device_type = kDLGPU;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment