GithubHelp home page GithubHelp logo

samples/smm doesn't build about libxsmm HOT 5 CLOSED

libxsmm avatar libxsmm commented on May 10, 2024
samples/smm doesn't build

from libxsmm.

Comments (5)

alheinecke avatar alheinecke commented on May 10, 2024

This reads to me as a GCC problem, we are not using this intrinsic in libxsmm.

Can you try ICC or a 5.1 GCC?

from libxsmm.

maxhutch avatar maxhutch commented on May 10, 2024

Looks like I was using Intel, but I was missing an include and only had the gcc version:

icpc  -fPIC -Wall -std=c++0x -fno-alias -ansi-alias -O2 -openmp -no-offload  -DNDEBUG -D__MKL -I/home/maxhutch/src/libxsmm/samples/smm -Ibuild -I../../include -I/opt/intel/composer_xe_2013_sp1.1.106/mkl/include -xHost -c /home/maxhutch/src/libxsmm/samples/smm/blas.cpp -o build/blas-cpp.o
In file included from /usr/include/c++/4.9/algorithm(60),
                 from /home/maxhutch/src/libxsmm/samples/smm/blas.cpp(37):
/usr/include/c++/4.9/utility(68): catastrophic error: cannot open source file "bits/c++config.h"
  #include <bits/c++config.h>
                             ^

compilation aborted for /home/maxhutch/src/libxsmm/samples/smm/blas.cpp (code 4)
Makefile:380: recipe for target 'build/blas-cpp.o' failed
make: *** [build/blas-cpp.o] Error 4
maxhutch@edoras:~/src/libxsmm/samples/smm$ locate bits/c++config.h
/usr/include/x86_64-linux-gnu/c++/4.9/bits/c++config.h

Maybe I need a newer intel?

maxhutch@edoras:~/src/libxsmm/samples/smm$ icpc --version
icpc (ICC) 14.0.1 20131008
Copyright (C) 1985-2013 Intel Corporation.  All rights reserved.

from libxsmm.

alheinecke avatar alheinecke commented on May 10, 2024

yepp. -std=c++0x requires the correct match of ICC and GCC and it's tricky with these old releases of ICC. My feeling is that GCC 4.9 is a way to new for ICC 14.0.1. You can try to remove the -std=c++0x flag, perhaps that works (never tried it)

from libxsmm.

alheinecke avatar alheinecke commented on May 10, 2024

Just tried with removed -std=c++0x and this works, no clue why c++0x is/was in the build line

from libxsmm.

maxhutch avatar maxhutch commented on May 10, 2024

After a compiler update to intel 16.0.0, it works with or without -std=c++0x

from libxsmm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.