Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions xmake/hygon.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
local dtk_root = os.getenv("DTK_ROOT") or "/opt/dtk"

local function hygon_cuda_roots()
local roots = {}
local configured = get_config("cuda") or os.getenv("HYGON_CUDA_HOME")
if configured and configured ~= "" then
table.insert(roots, configured)
return {configured}
end
table.insert(roots, path.join(dtk_root, "cuda", "cuda"))
table.insert(roots, path.join(dtk_root, "cuda", "cuda-12"))
table.insert(roots, path.join(dtk_root, "cuda", "cuda-11"))
table.insert(roots, path.join(dtk_root, "cuda"))
return roots
return {
path.join(dtk_root, "cuda", "cuda"),
path.join(dtk_root, "cuda", "cuda-12"),
path.join(dtk_root, "cuda", "cuda-11"),
path.join(dtk_root, "cuda"),
}
end

local function resolve_hygon_cuda_tool(tool)
Expand Down
Loading