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
ox696c
ktransformers
Commits
192746cf
Commit
192746cf
authored
Apr 29, 2025
by
Atream
Browse files
clean-up
parent
2bcdf10f
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 @
2bcdf10f
---
BasedOnStyle: LLVM
ColumnLimit: 120 # 设置最大行宽为 100
IndentWidth: 2
---
csrc/ktransformers_ext/CMakeLists.txt
View file @
192746cf
...
...
@@ -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