conan icon indicating copy to clipboard operation
conan copied to clipboard

What is the correct setting for a package built with the Intel classic compilers part of the Intel oneAPI 2023.1 package?

Open ansutremel opened this issue 1 year ago • 5 comments

What is your question?

Hi! I have a question regarding the correct profile settings for a package built with the Intel classic compilers being part of the Intel oneAPI 2023.1 package, which value for compiler.version and compiler.mode should be used for Conan 2?

  • The Intel compiler package installed is 2023.1.0
  • The integration into VisualStudio is using the toolset name Intel C++ Compiler 19.2 image
  • The compiler version returned by running icl.exe --version is 2021.9.0
    C:\Program Files (x86)\Intel\oneAPI\\compiler\2023.1.0\windows\bin\intel64\icl.exe" --version
    Intel(R) C++ Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.9.0 Build 20230302_000000
    Copyright (C) 1985-2023 Intel Corporation.  All rights reserved.
    

Have you read the CONTRIBUTING guide?

  • [X] I've read the CONTRIBUTING guide

ansutremel avatar Apr 26 '24 15:04 ansutremel

Hi @ansutremel

Thanks for opening the issue. I think that it would be enough to use this one for instance:

[settings]
os=Windows
arch=x86_64
compiler=intel-cc
compiler.mode=classic
compiler.version=2023.1
compiler.libcxx=libstdc++
build_type=Release

Let me know if this is working or if you have any other doubts about using the generators there.

franramirez688 avatar Apr 29 '24 09:04 franramirez688

Any news on this, @ansutremel? If not, we could close this issue 😁

franramirez688 avatar Apr 30 '24 10:04 franramirez688

@franramirez688, @memsharded, so for Intel compilers the convention would be to follow the package version and not the result of running icl.exe --version?

ansutremel avatar Apr 30 '24 10:04 ansutremel

@ansutremel I recall that it followed this versioning: https://www.intel.com/content/www/us/en/developer/articles/technical/oneapi-toolkit-version-to-compiler-version-mapping.html So, yes, it's meant to simplify the way to put the compiler version I think.

franramirez688 avatar Apr 30 '24 16:04 franramirez688

@ansutremel Does it solve your doubt? Could we close the issue if there are no more doubts?

franramirez688 avatar May 08 '24 10:05 franramirez688

@franramirez688 thanks, this solves the doubts.

ansutremel avatar May 14 '24 11:05 ansutremel