Commit 1f88b811 authored by xiabo's avatar xiabo
Browse files

Adapt to gcc7

parent f180aefb
...@@ -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)
...@@ -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():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment