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
Lmdeploy
Commits
1f88b811
Commit
1f88b811
authored
Dec 05, 2023
by
xiabo
Browse files
Adapt to gcc7
parent
f180aefb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/turbomind/utils/CMakeLists.txt
src/turbomind/utils/CMakeLists.txt
+1
-1
src/turbomind/utils/Tensor.cc
src/turbomind/utils/Tensor.cc
+4
-2
No files found.
src/turbomind/utils/CMakeLists.txt
View file @
1f88b811
...
@@ -115,4 +115,4 @@ endif()
...
@@ -115,4 +115,4 @@ endif()
add_library
(
tensor STATIC Tensor.cc
)
add_library
(
tensor STATIC Tensor.cc
)
#set_property(TARGET tensor PROPERTY POSITION_INDEPENDENT_CODE ON)
#set_property(TARGET tensor PROPERTY POSITION_INDEPENDENT_CODE ON)
#set_property(TARGET tensor PROPERTY CUDA_RESOLVE_DEVICE_SYMBOLS ON)
#set_property(TARGET tensor PROPERTY CUDA_RESOLVE_DEVICE_SYMBOLS ON)
target_link_libraries
(
tensor PUBLIC cuda_utils logger
)
target_link_libraries
(
tensor PUBLIC cuda_utils logger
-lstdc++fs
)
src/turbomind/utils/Tensor.cc
View file @
1f88b811
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
#include "stdlib.h"
#include "stdlib.h"
#include <cuda_fp16.h>
#include <cuda_fp16.h>
#include <cuda_runtime_api.h>
#include <cuda_runtime_api.h>
#include <filesystem>
// #include <filesystem>
#include <experimental/filesystem>
#include <numeric>
#include <numeric>
#include <stdlib.h>
#include <stdlib.h>
#include <string>
#include <string>
...
@@ -31,7 +32,8 @@
...
@@ -31,7 +32,8 @@
#include <unordered_map>
#include <unordered_map>
#include <vector>
#include <vector>
namespace
fs
=
std
::
filesystem
;
// namespace fs = std::filesystem;
namespace
fs
=
std
::
experimental
::
filesystem
;
namespace
turbomind
{
namespace
turbomind
{
Tensor
::
Tensor
()
:
Tensor
::
Tensor
()
:
...
...
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