<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi,<div>I want to run the code on the GPU, and I have installed the CUDA, Cusp, Thrust as the instruction. Now I can use nvcc successfully. But when I run the ex19. It terminate with the following message:</div><div><br></div><div>"<span class="Apple-style-span" style="font-family: arial, verdana, sans-serif; ">terminate called after throwing an instance of 'thrust::system::system_error'</span></div><span class="Apple-style-span" style="font-family: arial, verdana, sans-serif; ">what(): &nbsp;invalid device function</span><br style="font-family: arial, verdana, sans-serif; "><span class="Apple-style-span" style="font-family: arial, verdana, sans-serif; ">Aborted."</span><div><font class="Apple-style-span" face="arial, verdana, sans-serif"><br></font></div><div><span class="Apple-style-span" style="font-family: arial, verdana, sans-serif; ">I have tried closed all the X systems,but the same error still
  occurs.</span></div><div><font class="Apple-style-span" face="arial, verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, verdana, sans-serif">What's the problem?</font></div><div><font class="Apple-style-span" face="arial, verdana, sans-serif">Thank you.</font></div><div><font class="Apple-style-span" face="arial, verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, verdana, sans-serif">Zeng&nbsp;</font></div><div><font class="Apple-style-span" face="arial, verdana, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, verdana, sans-serif"><br></font><div><font class="Apple-style-span" face="Simsun" size="3"><span class="Apple-style-span" style="line-height: normal;">&nbsp;</span></font></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>