<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 16px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>Hi Mark,</div>
<div><br>
</div>
<div>I double checked and the main cpp file does include it but not the header file and the header file is included before <memory>. I think re-ordering the includes should fix this. Have to wait until vesta comes back to test this.</div>
<div><br>
</div>
<div>
<table class="highlight tab-size js-file-line-container" data-tab-size="8">
<tbody>
<tr>
<td id="LC10" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span>
<span class="pl-s"><span class="pl-pds">"</span>WaitingTaskList.h<span class="pl-pds">"</span></span></td>
</tr>
<tr>
</tr>
</tbody>
</table>
<table class="highlight tab-size js-file-line-container" data-tab-size="8">
<tbody>
<tr>
<td id="LC11" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span>
<span class="pl-s"><span class="pl-pds"><</span>iostream<span class="pl-pds">></span></span></td>
</tr>
<tr>
</tr>
</tbody>
</table>
<table class="highlight tab-size js-file-line-container" data-tab-size="8">
<tbody>
<tr>
<td id="LC12" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span>
<span class="pl-s"><span class="pl-pds"><</span>cassert<span class="pl-pds">></span></span></td>
</tr>
<tr>
</tr>
</tbody>
</table>
<table class="highlight tab-size js-file-line-container" data-tab-size="8">
<tbody>
<tr>
<td id="LC13" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span>
<span class="pl-s"><span class="pl-pds"><</span>memory<span class="pl-pds">></span></span></td>
</tr>
<tr>
</tr>
</tbody>
</table>
<table class="highlight tab-size js-file-line-container" data-tab-size="8">
<tbody>
<tr>
<td id="LC14" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span>
<span class="pl-s"><span class="pl-pds">“</span>ThreadingHelpers.h<span class="pl-pds">"</span></span></td>
</tr>
<tr>
</tr>
</tbody>
</table>
<br>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Mark Abraham <<a href="mailto:mark.j.abraham@gmail.com">mark.j.abraham@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Monday, July 11, 2016 at 2:15 PM<br>
<span style="font-weight:bold">To: </span>Patrick Gartung <<a href="mailto:gartung@fnal.gov">gartung@fnal.gov</a>>, "<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov">llvm-bgq-discuss@lists.alcf.anl.gov</a>" <<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov">llvm-bgq-discuss@lists.alcf.anl.gov</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Llvm-bgq-discuss] Does bgclang++11 implement std::unique_ptr<>?<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>My C++11 code using std::unique_ptr compiles fine. Did you #include <memory>?</div>
<div><br>
</div>
<div>Mark</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Mon, Jul 11, 2016 at 9:13 PM Patrick E Gartung <<a href="mailto:gartung@fnal.gov">gartung@fnal.gov</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><span>Hi,</span>
<div><span><br>
</span></div>
<div><span>I am trying to compile code on Vesta that uses c++14’s std::unique_ptr<> and I get the error below. Does bgclang++11 support this? Is the definition is a non-standard header?</span></div>
<div><span><br>
</span></div>
<div><span>Patrick Gartung</span></div>
<div><span><br>
</span><span><br>
</span><span><br>
</span><span><br>
</span>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(39,180,28);background-color:rgb(254,244,156)">
<span style="color:#000000"><br>
</span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(39,180,28);background-color:rgb(254,244,156)">
<span style="color:#000000">[ 5%] </span><span>Building CXX object TBBProcessingDemo/CMakeFiles/TBBFrameworkCore.dir/TBBFrameworkCore/WaitingTaskList.cpp.o</span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span>cd /home/gartung/build/TBBProcessingDemo && /soft/compilers/bgclang/wbin/bgclang++11 -DTBBFrameworkCore_EXPORTS -I/home/gartung/toy-mt-framework/BusyWaitCalibration -I/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore -I/soft/libraries/boost/current/cnk-bgclang++11/current/include
-I/home/gartung/tbb41_20130314oss/include -fPIC -stdlib=libc++ -fopenmp -std=c++14 -fPIC -o CMakeFiles/TBBFrameworkCore.dir/TBBFrameworkCore/WaitingTaskList.cpp.o -c /home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTaskList.cpp</span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span>In file included from /home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTaskList.cpp:10:</span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span>In file included from /home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTaskList.h:14:</span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b>/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:27:16:
</b></span><span style="color:#bc321c"><b>error: </b></span><span><b>no member named 'unique_ptr' in namespace</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b> 'std'</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span> std::unique_ptr<std::exception_ptr> temp{new std::exception_ptr{iPtr}};</span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(39,180,28);background-color:rgb(254,244,156)">
<span><b> ~~~~~^</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b>/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:27:45:
</b></span><span style="color:#bc321c"><b>error: </b></span><span><b>expected '(' for function-style cast or type</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b> construction</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span> std::unique_ptr<std::exception_ptr> temp{new std::exception_ptr{iPtr}};</span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(39,180,28);background-color:rgb(254,244,156)">
<span><b> ~~~~~~~~~~~~~~~~~~^</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b>/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:27:47:
</b></span><span style="color:#bc321c"><b>error: </b></span><span><b>use of undeclared identifier 'temp'</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span> std::unique_ptr<std::exception_ptr> temp{new std::exception_ptr{iPtr}};</span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(39,180,28);background-color:rgb(254,244,156)">
<span><b> ^</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b>/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:29:55:
</b></span><span style="color:#bc321c"><b>error: </b></span><span><b>use of undeclared identifier 'temp'</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span> if( m_ptr.compare_exchange_strong(expected, temp.get()) ) {</span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(39,180,28);background-color:rgb(254,244,156)">
<span><b> ^</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b>/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:30:14:
</b></span><span style="color:#bc321c"><b>error: </b></span><span><b>use of undeclared identifier 'temp'</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span> temp.release();</span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;color:rgb(39,180,28);background-color:rgb(254,244,156)">
<span><b> ^</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span>5 errors generated.</span></p>
<div><span><br>
</span></div>
</div>
</div>
_______________________________________________<br>
llvm-bgq-discuss mailing list<br>
<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov" target="_blank">llvm-bgq-discuss@lists.alcf.anl.gov</a><br>
<a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss" rel="noreferrer" target="_blank">https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</a><br>
</blockquote>
</div>
</div>
</div>
</span>
</body>
</html>