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
ModelZoo
BERT_migraphx
Commits
8117cf5f
Commit
8117cf5f
authored
Aug 26, 2024
by
liucong
Browse files
修改bert工程示例
parent
ea44851a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
CMakeLists.txt
CMakeLists.txt
+1
-2
README.md
README.md
+1
-1
No files found.
CMakeLists.txt
View file @
8117cf5f
...
@@ -17,8 +17,7 @@ set(INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Src/
...
@@ -17,8 +17,7 @@ set(INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Src/
include_directories
(
${
INCLUDE_PATH
}
)
include_directories
(
${
INCLUDE_PATH
}
)
# 添加依赖库路径
# 添加依赖库路径
set
(
LIBRARY_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/depend/lib64/
set
(
LIBRARY_PATH $ENV{DTKROOT}/lib/
)
$ENV{DTKROOT}/lib/
)
link_directories
(
${
LIBRARY_PATH
}
)
link_directories
(
${
LIBRARY_PATH
}
)
# 添加依赖库
# 添加依赖库
...
...
README.md
View file @
8117cf5f
...
@@ -95,7 +95,7 @@ rbuild build -d depend
...
@@ -95,7 +95,7 @@ rbuild build -d depend
将依赖库依赖加入环境变量LD_LIBRARY_PATH,在~/.bashrc中添加如下语句:
将依赖库依赖加入环境变量LD_LIBRARY_PATH,在~/.bashrc中添加如下语句:
```
```
export LD_LIBRARY_PATH=<path_to_bert_migraphx>/depend/lib
64
/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=<path_to_bert_migraphx>/depend/lib/:$LD_LIBRARY_PATH
```
```
然后执行:
然后执行:
...
...
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