Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Switching Compilers (Intel Related) #4518

Closed
Labels
@frenchwr

Description

@frenchwr

Hello all, I have an intel-compiled version of Python 2.7.8 that I'm trying to build and install Matplotlib into. When I run "python setup.py build" everything builds fine until:

icc -pthread -fno-strict-aliasing -O3 -fPIC -fp-model strict -fomit-frame-pointer -DNDEBUG -g -O3 -Wall -fPIC -DMPL_DEVNULL=/dev/null -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__qhull_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/usr/local/python2/2.7.8/x86_64/intel14/nonet/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I. -Iextern -I/usr/local/python2/2.7.8/x86_64/intel14/nonet/include/python2.7 -c src/qhull_wrap.c -o build/temp.linux-x86_64-2.7/src/qhull_wrap.oIn file included from src/qhull_wrap.c(10):extern/qhull/qhull_a.h(106): warning#77: this declaration has no storage class or type specifiertemplate<typename T> ^In file included from src/qhull_wrap.c(10):extern/qhull/qhull_a.h(106): error: expected a";"template<typename T>         ^In file included from src/qhull_wrap.c(10):extern/qhull/qhull_a.h(115): warning#12: parsing restarts here after previous syntax error  void    qh_qhull(void);                        ^compilation abortedfor src/qhull_wrap.c (code 2) error:command'icc' failed withexit status 2

The issue here is that icc does not support templates. When I manually run this command with icpc rather than icc it compiles fine. Can someone advise me on how I can go about switching to icpc to compile qhull_wrap.c? I'm also happy to submit a pull request if this is something that can be generalized in the build process. Version info listed below.

[frenchwr@vmps11 matplotlib]$ uname -aLinux vmps11 2.6.32-358.14.1.el6.x86_64#1 SMP Tue Jul 16 23:51:20 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[frenchwr@vmps11 matplotlib]$ lsb_release -aLSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributor ID: CentOSDescription:    CentOS release 6.5 (Final)Release:    6.5Codename:   Final
[frenchwr@vmps11 matplotlib]$ python --versionPython 2.7.8
[frenchwr@vmps11 matplotlib]$ icc --versionicc (ICC) 14.0.2 20140120Copyright (C) 1985-2014 Intel Corporation.  All rights reserved.
[frenchwr@vmps11 matplotlib]$ pip freezebiopython==1.65Cython==0.22mock==1.0.1nose==1.3.4numpy==1.9.1pandas==0.15.2pyparsing==2.0.3python-dateutil==2.4.0pytz==2014.10scikit-learn==0.15.2scipy==0.15.1seaborn==0.4.dev0six==1.9.0word-count==0.1.0
[frenchwr@vmps11 matplotlib]$ git describev1.4.3-1743-ga951b75

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp