Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[amdgpu] Part1 add codegen #6469

Merged
merged 27 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
eb30ea6
add amdgpu codegen
galeselee Oct 28, 2022
830c260
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 28, 2022
e226308
Merge branch 'taichi-dev:master' into amdgpu_codegen
galeselee Oct 31, 2022
a80f948
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 31, 2022
70421a0
Merge branch 'taichi-dev:master' into amdgpu_codegen
galeselee Dec 30, 2022
a250358
resolve conflict
galeselee Dec 30, 2022
4e20707
revert
galeselee Dec 31, 2022
b905efa
Merge pull request #13 from taichi-dev/master
galeselee Dec 31, 2022
3572eca
add cmake
galeselee Dec 31, 2022
5a609cb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 31, 2022
86b72da
pre-commit
galeselee Dec 31, 2022
310d9c4
Merge branch 'amdgpu_codegen' of github.com:Galeselee/taichi into amd…
galeselee Dec 31, 2022
ce3cbb3
update launch api
galeselee Dec 31, 2022
fc303b8
disable amdgpu_runtime
galeselee Dec 31, 2022
b859132
remove TI_LLVM_15
galeselee Jan 1, 2023
0141b92
add func definition
galeselee Jan 4, 2023
f661c52
revert
galeselee Jan 4, 2023
89ad50a
Merge branch 'taichi-dev:master' into amdgpu_codegen
galeselee Jan 10, 2023
e56c1cd
update cuda codegen
galeselee Jan 10, 2023
c8e8553
Merge branch 'amdgpu_codegen' of github.com:Galeselee/taichi into amd…
galeselee Jan 10, 2023
0b856a2
update launch api
galeselee Jan 10, 2023
d668742
fix typo
galeselee Jan 10, 2023
43b7367
use int replace auto
galeselee Jan 10, 2023
80aa424
update
galeselee Jan 10, 2023
4c05b54
fix
galeselee Jan 10, 2023
7b977f3
del extra space
galeselee Jan 10, 2023
baaa3dc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 10, 2023
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
3 changes: 3 additions & 0 deletions cmake/TaichiCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ if(TI_WITH_LLVM)
if (TI_WITH_AMDGPU)
llvm_map_components_to_libnames(llvm_amdgpu_libs AMDGPU)
add_subdirectory(taichi/rhi/amdgpu)
add_subdirectory(taichi/codegen/amdgpu)

target_link_libraries(${CORE_LIBRARY_NAME} PRIVATE amdgpu_codegen)
target_link_libraries(${CORE_LIBRARY_NAME} PRIVATE amdgpu_rhi)
galeselee marked this conversation as resolved.
Show resolved Hide resolved
endif()

Expand Down
17 changes: 17 additions & 0 deletions taichi/codegen/amdgpu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ./taichi/codegen/amdgpu/CMakeLists.txt

add_library(amdgpu_codegen)
target_sources(amdgpu_codegen
PRIVATE
codegen_amdgpu.cpp
)

target_include_directories(amdgpu_codegen
PRIVATE
${PROJECT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/external/eigen
${LLVM_INCLUDE_DIRS}
)

target_link_libraries(amdgpu_codegen PRIVATE taichi_util)
# target_link_libraries(amdgpu_codegen PRIVATE amdgpu_runtime)
Loading