<div dir="ltr">Hi Reza,<div><br></div><div><div style="font-size:12.8px"><div><div><div><div><div>Please take a look at the following link as the proposed solution in the link may solve your problem. It solved mine.<br><br><a href="http://lists.opengatecollaboration.org/mailman/private/gate-users/2016-June/009003.html" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/private/gate-users/<wbr>2016-June/009003.html</a><br><br></div>I solved the problem by modifying and recompiling the GATE source code. In the source code folder, you will see a file named CMakeLists.txt and inside you will find a line with CUDA_NVCC_FLAGS and two "-gencode arch=compute_XX,code=sm_XX;" where XX = 20 or 30 (which corresponds to Compute Capability 2.0 or 3.0).<br><br></div>Compute Capability 2.0 and 3.0 are for GPUs that are ~5+ years old so your GPU most likely will have a Compute Capability that is higher than those two. To identify the Compute Capability of your GPU, please refer to the Compute Capability you see when running CUDA example 5 or the link below:<br><a href="https://developer.nvidia.com/cuda-gpus" target="_blank"><br>https://developer.nvidia.com/<wbr>cuda-gpus</a></div><div><br></div><div>I imagine that this is patched in the next GATE release since my pull request has been accepted on the GitHub develop branch.<br><br></div>From what I understand, CUDA doesn't come with SDK anymore. While the link to the proposed solution (that I provided earlier) recommended we use the same filepath for both CUDA_TOOLKIT_ROOT_DIR and CUDA_SDK_ROOT_DIR, the example script worked with a blank CUDA_SDK_ROOT_DIR for me.<br><br></div>Hope that helps!<br><br></div>Sincerely,<br><br></div><span style="font-size:12.8px">Ed</span><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 14, 2016 at 3:00 AM, <span dir="ltr"><<a href="mailto:gate-users-request@lists.opengatecollaboration.org" target="_blank">gate-users-request@lists.opengatecollaboration.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Gate-users mailing list submissions to<br>
<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.<wbr>opengatecollaboration.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gate-users-owner@lists.opengatecollaboration.org">gate-users-owner@lists.<wbr>opengatecollaboration.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Gate-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. GATE v7.2 GPU Compilation (M.R Teimoori)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Tue, 13 Dec 2016 10:13:40 -0600<br>
From: "M.R Teimoori" <<a href="mailto:reza.teimoori.s@gmail.com">reza.teimoori.s@gmail.com</a>><br>
To: gate-users <<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.<wbr>opengatecollaboration.org</a>><br>
Subject: [Gate-users] GATE v7.2 GPU Compilation<br>
Message-ID:<br>
<<a href="mailto:CACEZ9i8X-Y5D4Jn4ihVkpBs-VXXTaWWdDqwP7gUuS2ixoM8iTA@mail.gmail.com">CACEZ9i8X-Y5D4Jn4ihVkpBs-<wbr>VXXTaWWdDqwP7gUuS2ixoM8iTA@<wbr>mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi All,<br>
<br>
I'm trying to compile GATE v7.2 with the GPU flag on. My GPU is GeForce GTX<br>
Titan Black and I have CUDA 8.0 installed on Ubuntu 16.04. The default<br>
variables don't lead to a successful compilation. If anyone has done the<br>
compilation successfully, can you please let me know what exactly I need to<br>
set the following variables:<br>
<br>
CUDA_HOST_COMPILER = default set to '/usr/bin/cc'<br>
CUDA_SDK_ROOT_DIR = no default folder has been chosen - It says it couldn't<br>
be found<br>
CUDA_TOOLKIT_ROOT_DIR = default set to '/usr/local/cuda-8.0'<br>
CUDA_USE_STATIC_CUDA_RUNTIME = default is 'on'<br>
CUDA_rt_LIBRARY = default set to '/usr/lib/x86_64-linux-gnu/<wbr>librt.so'<br>
<br>
Thank you,<br>
<br>
Cheers,<br>
Reza<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20161213/1f4633bb/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/private/gate-users/<wbr>attachments/20161213/1f4633bb/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.<wbr>opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" rel="noreferrer" target="_blank">http://lists.<wbr>opengatecollaboration.org/<wbr>mailman/listinfo/gate-users</a><br>
<br>
------------------------------<br>
<br>
End of Gate-users Digest, Vol 127, Issue 15<br>
******************************<wbr>*************<br>
</blockquote></div><br></div>