# How to correctly determine the \`-march\` flag when working with Intel oneAPI on Intel processors?

**URL:** <https://fortran-lang.discourse.group/t/how-to-correctly-determine-the-march-flag-when-working-with-intel-oneapi-on-intel-processors/2826>\
**Category:** Help\
**Created:** [February 19, 2022, 3:03am UTC](https://fortran-lang.discourse.group/t/how-to-correctly-determine-the-march-flag-when-working-with-intel-oneapi-on-intel-processors/2826 "2022-02-19T03:03:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Hongyi](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@Hongyi](https://fortran-lang.discourse.group/u/Hongyi)\
**Post date:** [February 19, 2022, 1:56pm UTC](https://fortran-lang.discourse.group/t/how-to-correctly-determine-the-march-flag-when-working-with-intel-oneapi-on-intel-processors/2826/3 "2022-02-19T13:56:14Z")

</div>

The [march document](https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/code-generation-options/march.html) has the following processor name:

```auto
broadwell

```

I mean: The initial letter is lowercase, while inxi’s result is capitalized. Which one should I use?

As for `-march=native`, I noticed intel has [`xHost`](https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/code-generation-options/xhost-qxhost.html#xhost-qxhost) code generation option, which is similar to the function of `-march=native`. But as we have discussed [here](https://www.vasp.at/forum/viewtopic.php?f=2&t=18392#p21492), `-xHOST` doesn’t work for some vasp tests.

BTW, the following gcc command confirms that `-march=native` is equivalent to `-march=broadwell` on my machine:

```auto
$ gcc -march=native -Q --help=target|grep -- '^[]*-march='
  -march= broadwell

```

Regards,  
HZ

---

_[View the full topic](https://fortran-lang.discourse.group/t/how-to-correctly-determine-the-march-flag-when-working-with-intel-oneapi-on-intel-processors/2826)._
