<font size=2 face="sans-serif">Hi Ye, Itaru,</font><br><br><font size=2 face="sans-serif">I submitted a bugfix for review: </font><a href="https://reviews.llvm.org/D61474"><font size=2 color=blue face="sans-serif">https://reviews.llvm.org/D61474</font></a><br><br><font size=2 face="sans-serif">This error should go away once it gets
approved.</font><br><br><font size=2 face="sans-serif">Thanks,</font><br><br><font size=2 face="sans-serif">--Doru</font><br><br><font size=1 face="Arial"><br></font><table width=650 style="border-collapse:collapse;"><tr height=8><td width=650 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=3 color=#8f8f8f face="Arial"><b>Doru
Bercea</b></font><font size=1 face="Arial"><br>Research Staff Member<br>Cloud Platform - Advanced Compilers Group<br>IBM TJ Watson Research Center</font></table><br><table width=650 style="border-collapse:collapse;"><tr height=8><td width=650 colspan=2 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><hr><tr valign=top height=8><td width=369 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><font size=1 color=#4181c0 face="Arial"><b>Phone:</b></font><font size=1 color=#5f5f5f face="Arial">914-945-2196</font><font size=1 color=#4181c0 face="Arial"> | <b>Mobile:</b></font><font size=1 color=#5f5f5f face="Arial">914-208-1517</font><font size=1 color=#4181c0 face="Arial"><b><br>E-mail:</b></font><font size=1 color=#5f5f5f face="Arial"> </font><a href="mailto:Gheorghe-Teod.Bercea@ibm.com" target="_blank"><font size=1 color=#5f5f5f face="Arial"><u>Gheorghe-Teod.Bercea@ibm.com</u></font></a><font size=1 color=#4181c0 face="Arial"><b><br>Chat:</b></font><img src=cid:_2_44DB2DD844DB2480000A0907852583EF alt="Skype: " style="border:0px solid;"><font size=1 color=#5f5f5f face="Arial">doru.bercea </font><td width=280 style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;"><div align=right><img src=cid:_2_44DB389044DB3340000A0907852583EF width=83 height=30 alt=IBM style="border:0px solid;"><font size=1 color=#5f5f5f face="Arial"><br><br>Yorktown Heights, NY 10598<br>United States</font></div></table><br><font size=2 face="sans-serif"><br></font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Ye Luo <xw111luoye@gmail.com></font><br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">Gheorghe-Teod Bercea
<Gheorghe-Teod.Bercea@ibm.com></font><br><font size=1 color=#5f5f5f face="sans-serif">Cc:      
 </font><font size=1 face="sans-serif">Itaru Kitayama <itaru.kitayama@gmail.com>,
openmp-dev@lists.llvm.org</font><br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">05/02/2019 02:31 PM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">Re: [Openmp-dev]
llvm-project trunk build fails on PowerPC</font><br><hr noshade><br><br><br><font size=3>Hi Doru,</font><br><font size=3>When I tried to build the clang-ykt patched-upstream (clang-ykt-patched-May)
today, I hit the same error when using the recent clang you provided on
Ascent (clang-ykt-patched-April).</font><br><font size=3>Then I switched to the llvm module built from a Feb version
of clang (clang-ykt-patched-Feb) . The compilation went through.</font><br><font size=3>Today, I tried to build upstream branch under the clang-ykt
repo using clang-ykt-patched-May. I hit the same error again. Then I switched
to clang-ykt-patched-Feb and the compilation completed fine.</font><br><font size=3>So I think there is some real issue.</font><br><font size=3>Ye</font><br><font size=3>===================<br>Ye Luo, Ph.D.<br>Computational Science Division & Leadership Computing Facility<br>Argonne National Laboratory</font><br><br><br><font size=3>Gheorghe-Teod Bercea via Openmp-dev <</font><a href="mailto:openmp-dev@lists.llvm.org"><font size=3 color=blue><u>openmp-dev@lists.llvm.org</u></font></a><font size=3>>
$BP2(B2019$BG/(B5$B7n(B1$BF|<~;0(B $B>e8a(B8:32$B<LF;!'(B</font><br><font size=2 face="sans-serif">Hi Itaru,</font><font size=3><br></font><font size=2 face="sans-serif"><br>I suspect you need to update the compiler you're using to compile the BCLIB.
It looks like it may be out of date.</font><font size=3><br></font><font size=2 face="sans-serif"><br>Thanks,</font><font size=3><br></font><font size=2 face="sans-serif"><br>--Doru<br></font><font size=3><br><br><br><br></font><font size=1 color=#5f5f5f face="sans-serif"><br>From:        </font><font size=1 face="sans-serif">Itaru
Kitayama via Openmp-dev <</font><a href="mailto:openmp-dev@lists.llvm.org" target="_blank"><font size=1 color=blue face="sans-serif"><u>openmp-dev@lists.llvm.org</u></font></a><font size=1 face="sans-serif">></font><font size=1 color=#5f5f5f face="sans-serif"><br>To:        </font><a href="mailto:openmp-dev@lists.llvm.org" target="_blank"><font size=1 color=blue face="sans-serif"><u>openmp-dev@lists.llvm.org</u></font></a><font size=1 color=#5f5f5f face="sans-serif"><br>Date:        </font><font size=1 face="sans-serif">05/01/2019
01:19 AM</font><font size=1 color=#5f5f5f face="sans-serif"><br>Subject:        </font><font size=1 face="sans-serif">[Openmp-dev]
llvm-project trunk build fails on PowerPC</font><font size=1 color=#5f5f5f face="sans-serif"><br>Sent by:        </font><font size=1 face="sans-serif">"Openmp-dev"
<</font><a href="mailto:openmp-dev-bounces@lists.llvm.org" target="_blank"><font size=1 color=blue face="sans-serif"><u>openmp-dev-bounces@lists.llvm.org</u></font></a><font size=1 face="sans-serif">></font><font size=3><br></font><hr noshade><font size=3><br><br><br>Hi,<br>$ ninja<br>[150/2173] Generating VCSRevision.h<br>-- Found Git: /usr/bin/git (found version "1.8.3.1")<br>[166/2173] Building LLVM bitcode data_sharing.cu-sm_60.bc<br>FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/data_sharing.cu-sm_60.bc<br>cd /tmp/projects/llvm-project/build/projects/openmp/libomptarget/deviceRTLs/nvptx
&& /p/project/cpcp0/pcp0151/opt/clang-ykt/bin/clang -emit-llvm
-O1 --cuda-device-only --cuda-path=/gpfs/software/opt/cuda/9.2.148 -fcuda-rdc
-DOMPTARGET_NVPTX_DEBUG=0 -Dnv_weak=weak --cuda-gpu-arch=sm_60 -c /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://data_sharing.cu" target="_blank"><font size=3 color=blue><u>data_sharing.cu</u></font></a><font size=3>-o
data_sharing.cu-sm_60.bc<br>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://data_sharing.cu:12" target="_blank"><font size=3 color=blue><u>data_sharing.cu:12</u></font></a><font size=3>:<br>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:<br>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]<br>template <typename... Arguments><br>                  ^<br>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]<br>template <typename... Arguments><br>                  ^<br>In file included from <built-in>:1:<br>In file included from /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:<br>/p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_intrinsics.h:173:35:
error: '__nvvm_shfl_sync_idx_i32' needs target feature ptx60|ptx61|ptx63|ptx64<br>__MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32,<br>                     
            ^<br>2 warnings and 1 error generated when compiling for sm_60.<br>[175/2173] Building LLVM bitcode reduction.cu-sm_60.bc<br>FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/reduction.cu-sm_60.bc<br>cd /tmp/projects/llvm-project/build/projects/openmp/libomptarget/deviceRTLs/nvptx
&& /p/project/cpcp0/pcp0151/opt/clang-ykt/bin/clang -emit-llvm
-O1 --cuda-device-only --cuda-path=/gpfs/software/opt/cuda/9.2.148 -fcuda-rdc
-DOMPTARGET_NVPTX_DEBUG=0 -Dnv_weak=weak --cuda-gpu-arch=sm_60 -c /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://reduction.cu" target="_blank"><font size=3 color=blue><u>reduction.cu</u></font></a><font size=3>-o
reduction.cu-sm_60.bc<br>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://reduction.cu:17" target="_blank"><font size=3 color=blue><u>reduction.cu:17</u></font></a><font size=3>:<br>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:<br>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]<br>template <typename... Arguments><br>                  ^<br>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]<br>template <typename... Arguments><br>                  ^<br>In file included from <built-in>:1:<br>In file included from /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:<br>/p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_intrinsics.h:179:40:
error: '__nvvm_shfl_sync_down_i32' needs target feature ptx60|ptx61|ptx63|ptx64<br>__MAKE_SYNC_SHUFFLES(__shfl_down_sync, __nvvm_shfl_sync_down_i32,<br>                     
                 ^<br>2 warnings and 1 error generated when compiling for sm_60.<br>[176/2173] Building LLVM bitcode parallel.cu-sm_60.bc<br>FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/parallel.cu-sm_60.bc<br>cd /tmp/projects/llvm-project/build/projects/openmp/libomptarget/deviceRTLs/nvptx
&& /p/project/cpcp0/pcp0151/opt/clang-ykt/bin/clang -emit-llvm
-O1 --cuda-device-only --cuda-path=/gpfs/software/opt/cuda/9.2.148 -fcuda-rdc
-DOMPTARGET_NVPTX_DEBUG=0 -Dnv_weak=weak --cuda-gpu-arch=sm_60 -c /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://parallel.cu" target="_blank"><font size=3 color=blue><u>parallel.cu</u></font></a><font size=3>-o
parallel.cu-sm_60.bc<br>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://parallel.cu:35" target="_blank"><font size=3 color=blue><u>parallel.cu:35</u></font></a><font size=3>:<br>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:<br>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]<br>template <typename... Arguments><br>                  ^<br>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]<br>template <typename... Arguments><br>                  ^<br>In file included from <built-in>:1:<br>In file included from /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:<br>/p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_intrinsics.h:173:35:
error: '__nvvm_shfl_sync_idx_i32' needs target feature ptx60|ptx61|ptx63|ptx64<br>__MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32,<br>                     
            ^<br>2 warnings and 1 error generated when compiling for sm_60.<br>[178/2173] Building LLVM bitcode loop.cu-sm_60.bc<br>FAILED: projects/openmp/libomptarget/deviceRTLs/nvptx/loop.cu-sm_60.bc<br>cd /tmp/projects/llvm-project/build/projects/openmp/libomptarget/deviceRTLs/nvptx
&& /p/project/cpcp0/pcp0151/opt/clang-ykt/bin/clang -emit-llvm
-O1 --cuda-device-only --cuda-path=/gpfs/software/opt/cuda/9.2.148 -fcuda-rdc
-DOMPTARGET_NVPTX_DEBUG=0 -Dnv_weak=weak --cuda-gpu-arch=sm_60 -c /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://loop.cu" target="_blank"><font size=3 color=blue><u>loop.cu</u></font></a><font size=3>-o
loop.cu-sm_60.bc<br>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/</font><a href="http://loop.cu:15" target="_blank"><font size=3 color=blue><u>loop.cu:15</u></font></a><font size=3>:<br>In file included from /tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:28:<br>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:131:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]<br>template <typename... Arguments><br>                  ^<br>/tmp/projects/llvm-project/openmp/libomptarget/deviceRTLs/nvptx/src/debug.h:141:19:
warning: variadic templates are a C++11 extension [-Wc++11-extensions]<br>template <typename... Arguments><br>                  ^<br>In file included from <built-in>:1:<br>In file included from /p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:396:<br>/p/project/cpcp0/pcp0151/opt/clang-ykt/lib/clang/9.0.0/include/__clang_cuda_intrinsics.h:173:35:
error: '__nvvm_shfl_sync_idx_i32' needs target feature ptx60|ptx61|ptx63|ptx64<br>__MAKE_SYNC_SHUFFLES(__shfl_sync, __nvvm_shfl_sync_idx_i32,<br>                     
            ^<br>2 warnings and 1 error generated when compiling for sm_60.<br>[198/2173] Building CXX object tools/l...llvm-rc.dir/ResourceScriptParser.cpp.o<br>ninja: build stopped: subcommand failed.<br><br>CMake options I set:<br><br>$ cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PROJECT/pcp0151/opt/clang-trunk
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_TARGETS_TO_BUILD=PowerPC
-DLIBOMP_ENABLE_SHARED=FALSE -DCLANG_OPENMP_NVPTX_DEFAULT_ARCH=sm_60 -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=TRUE
-DLIBOMP_ENABLE_SHARED=FALSE /tmp/projects/llvm-project</font><tt><font size=2><br>_______________________________________________<br>Openmp-dev mailing list</font></tt><tt><font size=2 color=blue><u><br></u></font></tt><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank"><tt><font size=2 color=blue><u>Openmp-dev@lists.llvm.org</u></font></tt></a><font size=3 color=blue><u><br></u></font><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank"><tt><font size=2 color=blue><u>https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</u></font></tt></a><font size=3><br><br><br><br>_______________________________________________<br>Openmp-dev mailing list</font><font size=3 color=blue><u><br></u></font><a href="mailto:Openmp-dev@lists.llvm.org" target="_blank"><font size=3 color=blue><u>Openmp-dev@lists.llvm.org</u></font></a><font size=3 color=blue><u><br></u></font><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank"><font size=3 color=blue><u>https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</u></font></a><br><br><BR>