Skip to content

Commit

Permalink
[ci] [dx12] enable dx12 build for windows cpu ci.
Browse files Browse the repository at this point in the history
Fix build fail and enable dx12 build for windows cpu ci to make sure it compiles.
  • Loading branch information
python3kgae committed Sep 15, 2022
1 parent e7bdbff commit 9324c4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/scripts/win_build_test_cpu.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ if (!$llvmVer.CompareTo("10")) {
} else {
$env:TAICHI_CMAKE_ARGS += " -DLLVM_AS_EXECUTABLE=C:\\taichi_llvm_15\\bin\\llvm-as.exe -DTI_WITH_VULKAN:BOOL=OFF"
$env:TAICHI_CMAKE_ARGS += " -DTI_LLVM_15:BOOL=ON"
$env:TAICHI_CMAKE_ARGS += " -DTI_WITH_DX12:BOOL=ON"
}


Expand Down
4 changes: 2 additions & 2 deletions taichi/codegen/dx12/codegen_dx12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class TaskCodeGenLLVMDX12 : public TaskCodeGenLLVM {
#ifdef TI_WITH_LLVM

static std::vector<uint8_t> generate_dxil_from_llvm(
LLVMCompiledData &compiled_data,
LLVMCompiledTask &compiled_data,
taichi::lang::Kernel *kernel) {
// generate dxil from llvm ir.
auto offloaded_local = compiled_data.tasks;
Expand Down Expand Up @@ -286,7 +286,7 @@ KernelCodeGenDX12::CompileResult KernelCodeGenDX12::compile() {
return Result;
}

LLVMCompiledData KernelCodeGenDX12::compile_task(
LLVMCompiledTask KernelCodeGenDX12::compile_task(
std::unique_ptr<llvm::Module> &&module,
OffloadedStmt *stmt) {
TaskCodeGenLLVMDX12 gen(kernel, stmt);
Expand Down
2 changes: 1 addition & 1 deletion taichi/codegen/dx12/codegen_dx12.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class KernelCodeGenDX12 : public KernelCodeGen {
};
CompileResult compile();
#ifdef TI_WITH_LLVM
LLVMCompiledData compile_task(
LLVMCompiledTask compile_task(
std::unique_ptr<llvm::Module> &&module = nullptr,
OffloadedStmt *stmt = nullptr) override;
#endif
Expand Down

0 comments on commit 9324c4d

Please sign in to comment.