public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
* "march=native" flag not working in libgccjit
@ 2023-05-15 20:07 Li, Yicheng
  2023-05-15 21:34 ` David Malcolm
  0 siblings, 1 reply; 2+ messages in thread
From: Li, Yicheng @ 2023-05-15 20:07 UTC (permalink / raw)
  To: jit

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

Hi,

In libjitgcc, I created a function and set flags “march=native” with gcc_jit_context_add_command_line_option( ctxt, “-march=native”.
However, the error is below:

libgccjit.so: error: bad value ‘native’ for ‘-march=’ switch

libgccjit.so: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake sapphirerapids emeraldrapids alderlake raptorlake meteorlake graniterapids bonnell atom silvermont slm goldmont goldmont-plus tremont sierraforest grandridge knl knm x86-64 x86-64-v2 x86-64-v3 x86-64-v4 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 lujiazui k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 znver4 btver1 btver2 native


Thank you
Yicheng Li

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "march=native" flag not working in libgccjit
  2023-05-15 20:07 "march=native" flag not working in libgccjit Li, Yicheng
@ 2023-05-15 21:34 ` David Malcolm
  0 siblings, 0 replies; 2+ messages in thread
From: David Malcolm @ 2023-05-15 21:34 UTC (permalink / raw)
  To: Li, Yicheng, jit

On Mon, 2023-05-15 at 20:07 +0000, Li, Yicheng via Jit wrote:
> Hi,
> 
> In libjitgcc, I created a function and set flags “march=native” with
> gcc_jit_context_add_command_line_option( ctxt, “-march=native”.
> However, the error is below:
> 
> libgccjit.so: error: bad value ‘native’ for ‘-march=’ switch
> 
> libgccjit.so: note: valid arguments to ‘-march=’ switch are: nocona
> core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-
> avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake
> icelake-client rocketlake icelake-server cascadelake tigerlake
> cooperlake sapphirerapids emeraldrapids alderlake raptorlake
> meteorlake graniterapids bonnell atom silvermont slm goldmont
> goldmont-plus tremont sierraforest grandridge knl knm x86-64 x86-64-
> v2 x86-64-v3 x86-64-v4 eden-x2 nano nano-1000 nano-2000 nano-3000
> nano-x2 eden-x4 nano-x4 lujiazui k8 k8-sse3 opteron opteron-sse3
> athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2
> bdver3 bdver4 znver1 znver2 znver3 znver4 btver1 btver2 native

Sorry about this; this is
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66594
and
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107230
Unfortunately it's tricky to implement this within libgccjit due to the
differences between it and the normal command-line way of invoking gcc.

If someone wants to try fixing this, that would be great.

Dave


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-15 21:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-15 20:07 "march=native" flag not working in libgccjit Li, Yicheng
2023-05-15 21:34 ` David Malcolm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).