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
b9eb03e7
Commit
b9eb03e7
authored
Nov 27, 2023
by
Artur Wojcik
Browse files
remove -fPIC on Windows - invalid option error msg
parent
82824b0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
test/jit.cpp
test/jit.cpp
+2
-1
No files found.
test/jit.cpp
View file @
b9eb03e7
...
@@ -46,10 +46,11 @@ std::function<F>
...
@@ -46,10 +46,11 @@ std::function<F>
compile_function
(
const
std
::
string
&
src
,
const
std
::
string
&
flags
,
const
std
::
string
&
fname
)
compile_function
(
const
std
::
string
&
src
,
const
std
::
string
&
flags
,
const
std
::
string
&
fname
)
{
{
migraphx
::
src_compiler
compiler
;
migraphx
::
src_compiler
compiler
;
compiler
.
flags
=
flags
+
"-std=c++14
-fPIC
-shared"
;
compiler
.
flags
=
flags
+
"-std=c++14 -shared"
;
#ifdef _WIN32
#ifdef _WIN32
compiler
.
output
=
"simple.dll"
;
compiler
.
output
=
"simple.dll"
;
#else
#else
compiler
.
flags
+=
" -fPIC"
;
compiler
.
output
=
"libsimple.so"
;
compiler
.
output
=
"libsimple.so"
;
#endif
#endif
migraphx
::
src_file
f
{
"main.cpp"
,
src
};
migraphx
::
src_file
f
{
"main.cpp"
,
src
};
...
...
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