[Scons-users] Intel Compiler 2016.1

Jakub Poła jakub.pola at gmail.com
Sat Jan 9 20:26:24 EST 2016


Hi,

I'm using scons in following version:
SCons by Steven Knight et al.:
    script: v2.3.0, 2013/03/03 09:48:35, by garyo on reepicheep
    engine: v2.3.0, 2013/03/03 09:48:35, by garyo on reepicheep
    engine path: ['/usr/lib/scons/SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012, 2013 The SCons Foundation

together with the new Intel Compiler:
icc (ICC) 16.0.1 20151021
Copyright (C) 1985-2015 Intel Corporation.  All rights reserved.

For my project scons was not able to find the version and top directory due
to changes in intel installation directory structure

To make it work I've added following code to the SCons/Tool/intelc.py

function get_all_compiler_versions():

for d in glob.glob('/opt/intel/compilers_and_libraries_*'):
            # JPA: For the new version of Intel compiler 2016.1.
            m = re.search(r'([0-9]{0,4})(?:_sp\d*)?\.([0-9][0-9.]*)$', d)
            if m:
                versions.append("%s.%s"%(m.group(1), m.group(2)))
                print versions

second change was in: get_intel_compiler_top(version, abi):

def find_in_2016style_dir(version):
            # The 2016 (compiler v16) dirs are inconsistet from previous)
            dirs=('/opt/intel/compilers_and_libraries_%s/linux'%version)
            dirs = glob.glob(dirs)
            top=None
            for d in dirs:
                if (os.path.exists(os.path.join(d, "bin", "ia32", "icc")) or
                    os.path.exists(os.path.join(d, "bin", "intel64",
"icc"))):
                    top = d
                    break
            return top

        top = find_in_2011style_dir(version) or
find_in_2010style_dir(version) or find_in_2008style_dir(version) or
find_in_2016style_dir(version)

I saw that in the scons 2.4.1 this change did not yet existed therefore I'm
sending this email.

Regards,
Jakub
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160110/d410eb74/attachment.html>


More information about the Scons-users mailing list