Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ktransformers
Commits
38333cf1
Unverified
Commit
38333cf1
authored
Apr 28, 2025
by
Atream
Committed by
GitHub
Apr 28, 2025
Browse files
Merge pull request #1218 from kvcache-ai/clean-up
clean-up
parents
e4538bc0
192746cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
.clang-format
.clang-format
+0
-5
csrc/ktransformers_ext/CMakeLists.txt
csrc/ktransformers_ext/CMakeLists.txt
+0
-15
No files found.
.clang-format
deleted
100644 → 0
View file @
e4538bc0
---
BasedOnStyle: LLVM
ColumnLimit: 120 # 设置最大行宽为 100
IndentWidth: 2
---
csrc/ktransformers_ext/CMakeLists.txt
View file @
38333cf1
...
...
@@ -53,21 +53,6 @@ else ()
set
(
CMAKE_GENERATOR_PLATFORM_LWR
""
)
endif
()
if
(
NOT DEFINED _GLIBCXX_USE_CXX11_ABI
)
find_package
(
Python3 REQUIRED COMPONENTS Interpreter
)
execute_process
(
COMMAND
${
Python3_EXECUTABLE
}
-c
"import torch; print('1' if torch.compiled_with_cxx11_abi() else '0')"
OUTPUT_VARIABLE ABI_FLAG
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set
(
_GLIBCXX_USE_CXX11_ABI
${
ABI_FLAG
}
CACHE STRING
"C++11 ABI setting from PyTorch"
FORCE
)
endif
()
add_compile_definitions
(
_GLIBCXX_USE_CXX11_ABI=
${
_GLIBCXX_USE_CXX11_ABI
}
)
if
(
NOT MSVC
)
if
(
LLAMA_STATIC
)
add_link_options
(
-static
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment