-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake error #391
Comments
#370. |
@TianYangMY Aww nuts. Yeah, that's on me. I didn't add Hygon to the GCC flag file. Just so I have a good first shot of good flags, can you send me the output of:
on a Hygon? I want to see what gcc thinks the processor is. |
This is output. Is it right? @mathomp4 |
Nocona?! Wow. Would not have expected that. What version of GCC are you using? |
Actually, I suppose to be "correct" you should run:
as we care about gfortran...but I'm guessing the same output from both. |
I use spack to install gcc10.2.0
The output is the same....... |
Well, if nocona is what it says, that's what we go with. Weird that GCC doesn't see it supporting AVX2. Maybe gcc 12 or 13 would. Still, for now, I'll stick with |
Ok, Thank you ! |
Okay. Here is the change in elseif (${proc_description} MATCHES "Hygon")
# Tests on a Hygon showed it returned 'nocona' for the native arch
# see https://github.com/geoschem/GCHP/issues/391
# Intel was happy with AVX2, but this test was done with GCC 10
# Perhaps later versions of GCC would return a different value?
# Until then, nocona is definitely safe. Pentium 4!
set (GNU_TARGET_ARCH "nocona")
set (GNU_NATIVE_ARCH "native")
set (NO_FMA "-mno-fma") I'll keep that PR draft until you can test with GCHP to make sure it builds and runs. I think it should, but let's be safe. |
@TianYangMY, when you make all of the ESMA_cmake changes that fix your issue it would be great if you could submit them to us to include in standard GCHP. You can do this via PR to our fork at https://github.com/geoschem/ESMA_cmake. Let me know if you are open to this and/or need help. |
I try run this
|
1 similar comment
I try run this
|
Well that is odd. You might need to ask the GNU mailing lists about this. I mean, It's weird that GCC 10 saw it as a Nocona (old, but still 64-bit) but GCC 12 sees it as a 32-bit? I mean, if nothing else, a Hygon should at least work as a "generic" 64-bit processor. Was your GCC 12 built by spack like your GCC 10? |
yes , I use spack to build gcc 12. |
Well, nuts. My only thought was that maybe gcc 12 was built differently, but my guess is that spack would build each compiler at least roughly the same. I think MAPL/GCHP should work with GCC 10, but it might need to be GCC 10.3. I think that's all I've tested with recently. |
Thanks, I will try to use GCC 10.3 to test. |
Is this issue resolved? |
I am closing this issue due to inactivity. @TianYangMY, please create a pull request if you need any updates included with the standard model. |
Name and Institution (Required)
Name: Shuai Li
Institution: SUN YAT-SEN UNIVERSITY
Description of your issue or question
When Configuring with cmake, the following error occurs.
Unknown processor. Contact Matt Thompson
I've encountered this problem before with Intel compiler , I'm using Hygon processor, this time I'm using gcc compiler, how should I set it to let cmake pass?
Please provide as much detail as possible. Always include the GCHP version number and any relevant configuration and log files.
GCHP 14.2.3
@mathomp4
The text was updated successfully, but these errors were encountered: