{"action":"created","issue":{"url":"https://api.github.com/repos/trilinos/Trilinos/issues/2390","repository_url":"https://api.github.com/repos/trilinos/Trilinos","labels_url":"https://api.github.com/repos/trilinos/Trilinos/issues/2390/labels{/name}","comments_url":"https://api.github.com/repos/trilinos/Trilinos/issues/2390/comments","events_url":"https://api.github.com/repos/trilinos/Trilinos/issues/2390/events","html_url":"https://github.com/trilinos/Trilinos/issues/2390","id":305385835,"number":2390,"title":"Ifpack2 - SIMD/Vectorization Intrinsics Error with Type Conversion on HSW/Kepler37 Optimized Build","user":{"login":"nmhamster","id":8905126,"avatar_url":"https://avatars3.githubusercontent.com/u/8905126?v=4","gravatar_id":"","url":"https://api.github.com/users/nmhamster","html_url":"https://github.com/nmhamster","followers_url":"https://api.github.com/users/nmhamster/followers","following_url":"https://api.github.com/users/nmhamster/following{/other_user}","gists_url":"https://api.github.com/users/nmhamster/gists{/gist_id}","starred_url":"https://api.github.com/users/nmhamster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmhamster/subscriptions","organizations_url":"https://api.github.com/users/nmhamster/orgs","repos_url":"https://api.github.com/users/nmhamster/repos","events_url":"https://api.github.com/users/nmhamster/events{/privacy}","received_events_url":"https://api.github.com/users/nmhamster/received_events","type":"User","site_admin":false},"labels":[{"id":291289398,"url":"https://api.github.com/repos/trilinos/Trilinos/labels/Ifpack2","name":"Ifpack2","color":"5319e7","default":false},{"id":287520103,"url":"https://api.github.com/repos/trilinos/Trilinos/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-15T01:37:22Z","updated_at":"2018-03-15T01:44:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"@trilinos/ifpack2 :\r\n\r\nRunning an optimized build for HSW/Kepler37 with GCC 4.9.3 and CUDA 9.0. The following error is created. If this code is using STK::SIMD or SIMD Types, its possible there is a invalid type conversion present in this library. This particular file generates all kinds of warnings.\r\n\r\nCompile line is (lots of stuff) and:\r\n\r\n```\r\n-pedantic -Wall -Wno-long-long -Wwrite-strings   -fPIC -lineinfo  --std=c++11 -expt-extended-lambda -march=core-avx2 -mtune=core-avx2 -arch=sm_37   -g -O0   -o CMakeFiles/ifpack2.dir/Ifpack2_BlockTriDiContainer_Serial.cpp.o -c /home/sdhammo/git/trilinos-sparc-gitlab-repo/build-sparc-493-90176-arch/packages/ifpack2/src/Ifpack2_BlockTriDiContainer_Serial.cpp\r\n```\r\n\r\nProduces the following error when using `KOKKOS_ARCH=HSW;Kepler37`\r\n\r\n```\r\n...\r\n/home/sdhammo/git/trilinos-sparc-gitlab-repo/packages/kokkos-kernels/src/batched/KokkosBatched_InnerTrsm_Serial_Impl.hpp(1367): warning: calling a __host__ function from a __host__ __device__ function is not allowed\r\n\r\n/home/sdhammo/git/trilinos-sparc-gitlab-repo/packages/kokkos-kernels/src/batched/KokkosBatched_InnerTrsm_Serial_Impl.hpp(1380): warning: calling a __host__ function from a __host__ __device__ function is not allowed\r\n\r\n/home/projects/x86-64/gcc/4.9.3/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avxintrin.h(54): error: Internal Compiler Error (codegen): \"unsupported type during translation!\"\r\n\r\nmake[2]: *** [packages/ifpack2/src/CMakeFiles/ifpack2.dir/build.make:927: packages/ifpack2/src/CMakeFiles/ifpack2.dir/Ifpack2_BlockTriDiContainer_Serial.cpp.o] Error 2\r\nmake[1]: *** [CMakeFiles/Makefile2:11785: packages/ifpack2/src/CMakeFiles/ifpack2.dir/all] Error 2\r\nmake: *** [Makefile:161: all] Error 2\r\n```"},"comment":{"url":"https://api.github.com/repos/trilinos/Trilinos/issues/comments/373232379","html_url":"https://github.com/trilinos/Trilinos/issues/2390#issuecomment-373232379","issue_url":"https://api.github.com/repos/trilinos/Trilinos/issues/2390","id":373232379,"user":{"login":"nmhamster","id":8905126,"avatar_url":"https://avatars3.githubusercontent.com/u/8905126?v=4","gravatar_id":"","url":"https://api.github.com/users/nmhamster","html_url":"https://github.com/nmhamster","followers_url":"https://api.github.com/users/nmhamster/followers","following_url":"https://api.github.com/users/nmhamster/following{/other_user}","gists_url":"https://api.github.com/users/nmhamster/gists{/gist_id}","starred_url":"https://api.github.com/users/nmhamster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmhamster/subscriptions","organizations_url":"https://api.github.com/users/nmhamster/orgs","repos_url":"https://api.github.com/users/nmhamster/repos","events_url":"https://api.github.com/users/nmhamster/events{/privacy}","received_events_url":"https://api.github.com/users/nmhamster/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T01:44:25Z","updated_at":"2018-03-15T01:44:25Z","author_association":"CONTRIBUTOR","body":"Removing the Haswell flags (`-march=core-avx2 -mtune=core-avx2`) and recompiling by hand seems to work and produce an object file, or at least no compile errors. This could be a compiler bug?"}}
{"actor":{"display_login":"nmhamster"}}