{"action":"created","issue":{"url":"https://api.github.com/repos/paboyle/Grid/issues/57","repository_url":"https://api.github.com/repos/paboyle/Grid","labels_url":"https://api.github.com/repos/paboyle/Grid/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/paboyle/Grid/issues/57/comments","events_url":"https://api.github.com/repos/paboyle/Grid/issues/57/events","html_url":"https://github.com/paboyle/Grid/issues/57","id":182440477,"number":57,"title":"Compilation on cray machines [SOLVED]","user":{"login":"azrael417","id":1052902,"avatar_url":"https://avatars.githubusercontent.com/u/1052902?v=3","gravatar_id":"","url":"https://api.github.com/users/azrael417","html_url":"https://github.com/azrael417","followers_url":"https://api.github.com/users/azrael417/followers","following_url":"https://api.github.com/users/azrael417/following{/other_user}","gists_url":"https://api.github.com/users/azrael417/gists{/gist_id}","starred_url":"https://api.github.com/users/azrael417/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azrael417/subscriptions","organizations_url":"https://api.github.com/users/azrael417/orgs","repos_url":"https://api.github.com/users/azrael417/repos","events_url":"https://api.github.com/users/azrael417/events{/privacy}","received_events_url":"https://api.github.com/users/azrael417/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paboyle/Grid/labels/pri:%20normal","name":"pri: normal","color":"fbca04"},{"url":"https://api.github.com/repos/paboyle/Grid/labels/type:%20portability","name":"type: portability","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"aportelli","id":153272,"avatar_url":"https://avatars.githubusercontent.com/u/153272?v=3","gravatar_id":"","url":"https://api.github.com/users/aportelli","html_url":"https://github.com/aportelli","followers_url":"https://api.github.com/users/aportelli/followers","following_url":"https://api.github.com/users/aportelli/following{/other_user}","gists_url":"https://api.github.com/users/aportelli/gists{/gist_id}","starred_url":"https://api.github.com/users/aportelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aportelli/subscriptions","organizations_url":"https://api.github.com/users/aportelli/orgs","repos_url":"https://api.github.com/users/aportelli/repos","events_url":"https://api.github.com/users/aportelli/events{/privacy}","received_events_url":"https://api.github.com/users/aportelli/received_events","type":"User","site_admin":false},"assignees":[{"login":"aportelli","id":153272,"avatar_url":"https://avatars.githubusercontent.com/u/153272?v=3","gravatar_id":"","url":"https://api.github.com/users/aportelli","html_url":"https://github.com/aportelli","followers_url":"https://api.github.com/users/aportelli/followers","following_url":"https://api.github.com/users/aportelli/following{/other_user}","gists_url":"https://api.github.com/users/aportelli/gists{/gist_id}","starred_url":"https://api.github.com/users/aportelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aportelli/subscriptions","organizations_url":"https://api.github.com/users/aportelli/orgs","repos_url":"https://api.github.com/users/aportelli/repos","events_url":"https://api.github.com/users/aportelli/events{/privacy}","received_events_url":"https://api.github.com/users/aportelli/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/paboyle/Grid/milestones/2","html_url":"https://github.com/paboyle/Grid/milestones/0.6.0","labels_url":"https://api.github.com/repos/paboyle/Grid/milestones/2/labels","id":1902718,"number":2,"title":"0.6.0","description":null,"creator":{"login":"aportelli","id":153272,"avatar_url":"https://avatars.githubusercontent.com/u/153272?v=3","gravatar_id":"","url":"https://api.github.com/users/aportelli","html_url":"https://github.com/aportelli","followers_url":"https://api.github.com/users/aportelli/followers","following_url":"https://api.github.com/users/aportelli/following{/other_user}","gists_url":"https://api.github.com/users/aportelli/gists{/gist_id}","starred_url":"https://api.github.com/users/aportelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aportelli/subscriptions","organizations_url":"https://api.github.com/users/aportelli/orgs","repos_url":"https://api.github.com/users/aportelli/repos","events_url":"https://api.github.com/users/aportelli/events{/privacy}","received_events_url":"https://api.github.com/users/aportelli/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":6,"state":"open","created_at":"2016-07-25T15:09:28Z","updated_at":"2016-10-20T13:53:37Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2016-10-12T05:44:39Z","updated_at":"2016-10-26T15:42:54Z","closed_at":"2016-10-20T13:53:37Z","body":"I have several issues compiling GRID on a cray machine. \r\n\r\n1) the automatically generated Makefile in lib does not get the correct include paths:\r\nmake[2]: Entering directory '/global/project/projectdirs/mpccc/tkurth/NESAP/GRID/build/lib'\r\n  CXX      Init.o\r\n  CXX      PerfCount.o\r\n  CXX      algorithms/approx/MultiShiftFunction.o\r\n  CXX      Log.o\r\n  CXX      qcd/action/fermion/CayleyFermion5D.o\r\n  CXX      qcd/action/fermion/ContinuedFractionFermion5D.o\r\n  CXX      qcd/action/fermion/PartialFractionFermion5D.o\r\n  CXX      qcd/action/fermion/WilsonFermion.o\r\n  CXX      qcd/action/fermion/WilsonKernels.o\r\n  CXX      qcd/action/fermion/WilsonFermion5D.o\r\n  CXX      qcd/action/fermion/WilsonKernelsAsm.o\r\n  CXX      qcd/action/fermion/WilsonKernelsHand.o\r\nIn file included from ../../src/lib/qcd/action/fermion/CayleyFermion5D.cc:32:0:\r\n../../src/lib/Grid.h:62:46: fatal error: Grid/serialisation/Serialisation.h: No such file or directory\r\n #include <Grid/serialisation/Serialisation.h>\r\nThat I could fix by manually adding -I's in the generated makefile\r\n\r\n2) the lib compilation uses gcc/g++ and not the compiler I selected. I want to use the cray wrappers cc/CC to enable cray mpi, but I got:\r\nmake[1]: Entering directory '/global/project/projectdirs/mpccc/tkurth/NESAP/GRID/build/lib'\r\n  CXX      Init.o\r\nIn file included from ../../src/include/Grid/Communicator.h:31:0,\r\n                 from ../../src/lib/Grid.h:72,\r\n                 from ../../src/lib/Init.cc:44:\r\n../../src/include/Grid/communicator/Communicator_base.h:35:17: fatal error: mpi.h: No such file or directory\r\n #include <mpi.h>\r\nThat is expected, as gcc does not know about mpi. Please fix this so that CC/CXX is actually CC/CXX specified by the user\r\n\r\n3) after fixing that, the next error is:\r\n../../src/include/Grid/Stencil.h(276): error: a value of type \"Grid::iScalar<Grid::iVector<Grid::iVector<Grid::vComplexF, 3>, 2>> *\" cannot be used to initialize an entity of type \"uint64_t={unsigned long}\"\r\n  \t uint64_t cbase = & comm_buf[0];\r\nto me this looks like a some implicit casting the intel compiler does not like. I think an explicit typecast would be healthy here.\r\n\r\n4) after fixing these things, I finally get:\r\nmake[2]: Entering directory '/global/project/projectdirs/mpccc/tkurth/NESAP/GRID/build/lib'\r\nmake[2]: *** No rule to make target 'simd/Grid_empty.h', needed by 'all-am'.  Stop.\r\nThat I don't know how to solve. Please advise.\r\n\r\nBest \r\nThorsten"},"comment":{"url":"https://api.github.com/repos/paboyle/Grid/issues/comments/256388339","html_url":"https://github.com/paboyle/Grid/issues/57#issuecomment-256388339","issue_url":"https://api.github.com/repos/paboyle/Grid/issues/57","id":256388339,"user":{"login":"paboyle","id":7544013,"avatar_url":"https://avatars.githubusercontent.com/u/7544013?v=3","gravatar_id":"","url":"https://api.github.com/users/paboyle","html_url":"https://github.com/paboyle","followers_url":"https://api.github.com/users/paboyle/followers","following_url":"https://api.github.com/users/paboyle/following{/other_user}","gists_url":"https://api.github.com/users/paboyle/gists{/gist_id}","starred_url":"https://api.github.com/users/paboyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paboyle/subscriptions","organizations_url":"https://api.github.com/users/paboyle/orgs","repos_url":"https://api.github.com/users/paboyle/repos","events_url":"https://api.github.com/users/paboyle/events{/privacy}","received_events_url":"https://api.github.com/users/paboyle/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T15:42:54Z","updated_at":"2016-10-26T15:42:54Z","body":"g++ is not yet known good on AVX512 intrinsics for us. Can you try current develop with ICPC?\nPeter\n\n> On 19 Oct 2016, at 16:47, Thorsten Kurth <notifications@github.com> wrote:\n> \n> That is the makefile output (relevant part)\n> \n> ``make[1]: Entering directory '/global/project/projectdirs/mpccc/tkurth/NESAP/GRID/build/lib'\n> make all-am\n> make[2]: Entering directory '/global/project/projectdirs/mpccc/tkurth/NESAP/GRID/build/lib'\n> depbase=echo Init.o | sed 's|[^/]$|.deps/&|;s|.o$||'`;\\\n> g++ -DHAVE_CONFIG_H -I. -I../../src/lib -I/global/project/projectdirs/mpccc/tkurth/NESAP/GRID/src/include -mavx512f -mavx512pf -mavx512er -mavx512cd -fopenmp -O3 -std=c++11 -MT Init.o -MD -MP -MF $depbase.Tpo -c -o Init.o ../../src/lib/Init.cc &&\\\n> mv -f $depbase.Tpo $depbase.Po\n> g++: error: unrecognized command line option '-mavx512f'\n> g++: error: unrecognized command line option '-mavx512pf'\n> g++: error: unrecognized command line option '-mavx512er'\n> g++: error: unrecognized command line option '-mavx512cd'\n> Makefile:1059: recipe for target 'Init.o' failed\n> make[2]: ** [Init.o] Error 1\n> make[2]: Leaving directory '/global/project/projectdirs/mpccc/tkurth/NESAP/GRID/build/lib'\n> Makefile:784: recipe for target 'all' failed\n> make[1]: *** [all] Error 2\n> make[1]: Leaving directory '/global/project/projectdirs/mpccc/tkurth/NESAP/GRID/build/lib'\n> Makefile:369: recipe for target 'all-recursive' failed\n> make: *** [all-recursive] Error 1\n> \n> it tries using g++/gcc, not CC/cc\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub <https://github.com/paboyle/Grid/issues/57#issuecomment-254854293>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHMczV8wec23JYmBchmadXvgYlKsAUvCks5q1juSgaJpZM4KUY1L>.\n> \n\n\nThe University of Edinburgh is a charitable body, registered in\nScotland, with registration number SC005336.\n"}}
{"actor":{"display_login":"paboyle"}}