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
gaoqiong
onnxruntime_v14
Commits
541b8e4d
Commit
541b8e4d
authored
Aug 07, 2023
by
gaoqiong
Browse files
set --gpu-max-threads-per-block=1024
parent
ee7cced8
Pipeline
#491
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
cmake/CMakeLists.txt
cmake/CMakeLists.txt
+1
-0
No files found.
cmake/CMakeLists.txt
View file @
541b8e4d
...
@@ -1345,6 +1345,7 @@ function(onnxruntime_set_compile_flags target_name)
...
@@ -1345,6 +1345,7 @@ function(onnxruntime_set_compile_flags target_name)
# some #pragma unroll will fail, do not treat them as error
# some #pragma unroll will fail, do not treat them as error
# #warning must not be treated as error
# #warning must not be treated as error
list
(
APPEND ORT_HIP_WARNING_FLAGS -Wno-error=pass-failed
"-Wno-error=#warnings"
)
list
(
APPEND ORT_HIP_WARNING_FLAGS -Wno-error=pass-failed
"-Wno-error=#warnings"
)
list
(
APPEND ORT_HIP_WARNING_FLAGS --gpu-max-threads-per-block=1024
)
foreach
(
FLAG
${
ORT_HIP_WARNING_FLAGS
}
)
foreach
(
FLAG
${
ORT_HIP_WARNING_FLAGS
}
)
target_compile_options
(
${
target_name
}
PRIVATE
"$<$<COMPILE_LANGUAGE:HIP>:SHELL:
${
FLAG
}
>"
)
target_compile_options
(
${
target_name
}
PRIVATE
"$<$<COMPILE_LANGUAGE:HIP>:SHELL:
${
FLAG
}
>"
)
...
...
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