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
MIGraphX
Commits
82824b0c
Commit
82824b0c
authored
Nov 27, 2023
by
Artur Wojcik
Browse files
use Clang++ on Windows from HIP SDK
parent
6342ca06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/include/migraphx/compile_src.hpp
src/include/migraphx/compile_src.hpp
+11
-0
No files found.
src/include/migraphx/compile_src.hpp
View file @
82824b0c
...
...
@@ -25,6 +25,9 @@
#define MIGRAPHX_GUARD_MIGRAPHX_COMPILE_SRC_HPP
#include <migraphx/config.hpp>
#ifdef _WIN32
#include <migraphx/env.hpp>
#endif
#include <migraphx/filesystem.hpp>
#include <functional>
#include <string>
...
...
@@ -51,9 +54,17 @@ struct src_file
}
};
#ifdef _WIN32
MIGRAPHX_DECLARE_ENV_VAR
(
HIP_PATH
)
#endif
struct
MIGRAPHX_EXPORT
src_compiler
{
#ifdef _WIN32
std
::
string
compiler
=
(
fs
::
path
{
string_value_of
(
HIP_PATH
{})}
/
"bin"
/
"clang++.exe"
).
string
();
#else
std
::
string
compiler
=
"c++"
;
#endif
std
::
string
flags
=
""
;
std
::
string
output
=
""
;
std
::
string
launcher
=
""
;
...
...
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