Re: [EXTERNAL] Re: Adding support for Intel compilers

Jason Kenny <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <SN2PR01MB2000318C798A7DD200D4235484089@SN2PR01MB2000.prod.exchangelabs.com>
Just to add to the notes here you can go to https://discord.gg/W7GFE7hF scons-help channel to get more interactive help.

Jason

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Kokron, Daniel S. (ARC-606.2)[InuTeq, LLC] via Scons-users<mailto:[email protected]>
Sent: Wednesday, June 23, 2021 6:57 PM
To: SCons users mailing list<mailto:[email protected]>
Cc: Kokron, Daniel S. (ARC-606.2)[InuTeq, LLC]<mailto:[email protected]>
Subject: Re: [Scons-users] [EXTERNAL] Re: Adding support for Intel compilers

SCons-4.1.0
Python-3.8.8
Intel-2020.4.304
This is a Linux systems running SLES-12sp5
Yes, that is the project I’m trying to build.

The renamed pleiades_intel.py is attached

From: Scons-users <[email protected]> on behalf of Bill Deegan <[email protected]>
Reply-To: SCons users mailing list <[email protected]>
Date: Wednesday, June 23, 2021 at 5:53 PM
To: SCons users mailing list <[email protected]>
Subject: [EXTERNAL] Re: [Scons-users] Adding support for Intel compilers

Daniel,

Some baseline questions:
Which version of SCons/Python/Intel C compiler?
Which platform (distro/version)?

So you're using a newer version of Intel C than the scons logic is expecting and also installed at a different base dir.

Is this the project you're trying to build?
https://github.com/enzo-project/enzo-e<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fenzo-project%2Fenzo-e&data=04%7C01%7C%7C34a9d422278245614ac408d936a2aa4b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600894736103902%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=0ajunu5nefVml7qGQbm%2BXU6g2tRrcU7%2FLTHHRBBabys%3D&reserved=0>

-Bill
SCons Project Co-Manager.


On Wed, Jun 23, 2021 at 2:57 PM Jason Kenny <[email protected]<mailto:[email protected]>> wrote:

I believe you need to make sure you load the c++/gcc tool as well as this adds other items you need to have defined that the intelc.py tool does not handle if I recall correctly with pure SCons

You should be able to find some examples of how in Pure SCons to create the Environment correctly in the user list.

I have support for icc in my extension for Scons called Parts. In fact, I am adding support for the new icx version that should be replacing the existing/classic icc case for the next drop.

Jason

From: Scons-users <[email protected]<mailto:[email protected]>> on behalf of Kokron, Daniel S. (ARC-606.2)[InuTeq, LLC] via Scons-users <[email protected]<mailto:[email protected]>>
Sent: Wednesday, June 23, 2021 4:14 PM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Kokron, Daniel S. (ARC-606.2)[InuTeq, LLC] <[email protected]<mailto:[email protected]>>
Subject: [Scons-users] Adding support for Intel compilers


I have a user on our system whose application (ENZO-E) depends on SCons.  We have a working build that uses GNU compilers however I would like to test the code using Intel compilers as they typically provide better performance on our system.  I have already worked through some issues by modifying SCons/Tool/intelc.py so it can find our installation tree.



-            for d in glob.glob('/opt/intel/compilers_and_libraries_%s/linux'%version):

+            for d in glob.glob('/nasa/intel/Compiler/2020.4.304/compilers_and_libraries_%s/linux'%version):



I have tried duplicating the set of files used for GNU compilers (gcc.py, g++.py and gxx.py), replacing GNU compiler names with appropriate names of Intel compilers.  However, nothing I’ve tried has been able to resolve the following.



scons: *** While building `['cello.o']' from `['cello.cpp']': Don't know how to build from a source file with suffix `.cpp'.  Expected a suffix in this list: ['.c', '.m', '.i', '.fpp', '.FPP', '.I', '.f77', '.F77', '.i90', '.I90', '.f95', '.F95', '.f03', '.F03', '.f08', '.F08', '.s', '.asm', '.ASM', '.spp', '.SPP', '.sx', '.S', '.d'].



Can anyone offer some guidance on how to proceed?



Daniel Kokron
RedLine Performance Solutions
SciCon/APP group

--


_______________________________________________
Scons-users mailing list
[email protected]<mailto:[email protected]>
https://pairlist4.pair.net/mailman/listinfo/scons-users<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpairlist4.pair.net%2Fmailman%2Flistinfo%2Fscons-users&data=04%7C01%7C%7C34a9d422278245614ac408d936a2aa4b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637600894736103902%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Bz2wC1T6OpThP6GD%2BFyxZMWCZSpwcZUPzFka5pcqwYw%3D&reserved=0>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
169F1DBA4C174A3E96F0E9E21F6EAEAD.png (image/png, 141 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.