[Gate-users] Install Gate based on GPU
Mery MB
mery.mb.mph at gmail.com
Tue Jul 10 09:01:27 CEST 2018
Hi Dear Gate User
Dear Ezzat
Dear Jiri
At first Thanks for answering my question.
I edit the file "Gate_generated_GateGPUManager.cu.o.cmake" and replace the
line
set(CUDA_NVCC_FLAGS -gencode arch=compute_20,code=sm_20;-gencode
arch=compute_30,code=sm_30;-use_fast_math;-w;--ptxas-options=-v ;; ) # list
# Build specific configuration flags
with the below lines that you suggested to me:
------------------------------------------------------------------------------------------------------------------
SET(CUDA_NVCC_FLAGS "-gencode arch=compute_20,code=sm_20;-gencode
arch=compute_30,code=sm_30;-gencode arch=compute_32,code=sm_32;-gencode
arch=compute_35,code=sm_35;-gencode arch=compute_37,code=sm_37;-gencode
arch=compute_50,code=sm_50;-gencode arch=compute_52,code=sm_52;-gencode
arch=compute_52,code=sm_52;-gencode arch=compute_52,code=sm_52;-gencode
arch=compute_52,code=sm_52;-use_fast_math;-w;--ptxas-options=-v")
list(APPEND CUDA_NVCC_FLAGS "-std
c++11;-O2;-DVERBOSE;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES")
SET(CUDA_PROPAGATE_HOST_FLAGS OFF)
CUDA_ADD_EXECUTABLE(Gate Gate.cc ${sources} ${sourcesGPU} ${headers})
ELSE(GATE_USE_GPU AND CUDA_FOUND)
ADD_EXECUTABLE(Gate Gate.cc ${sources} ${headers})
ENDIF(GATE_USE_GPU AND CUDA_FOUND)
-----------------------------------------------------------------------------------------------------------------
But I get get the below errors:
CMake Error at Gate_generated_GateGPUManager.cu.o.cmake:78
(CUDA_ADD_EXECUTABLE):
Unknown CMake command "CUDA_ADD_EXECUTABLE".
CMakeFiles/Gate.dir/build.make:63: recipe for target
'CMakeFiles/Gate.dir/source/gpu/src/Gate_generated_GateGPUManager.cu.o'
failed
make[2]: ***
[CMakeFiles/Gate.dir/source/gpu/src/Gate_generated_GateGPUManager.cu.o]
Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/Gate.dir/all' failed
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
I wonder if encounter with this error before and have time to solve this
issue?
I will be thankful if you can help me
best
Mery
On Wed, Jul 4, 2018 at 4:58 PM Ezzat Elmoujarkach <ezzat.elmo at gmail.com>
wrote:
> Good day Mery,
>
> I also faced the same issue when installing GATE with cuda. After checking
> around I found this to solve my issue:
>
> In the cmakelists.txt in gate main file this under the cuda section, find
> the following and edit it as follows:
>
> %%%%
> IF(GATE_USE_GPU AND CUDA_FOUND)
> SET(CUDA_NVCC_FLAGS "-gencode arch=compute_20,code=sm_20;-gencode
> arch=compute_30,code=sm_30;-gencode arch=compute_32,code=sm_32;-gencode
> arch=compute_35,code=sm_35;-gencode arch=compute_37,code=sm_37;-gencode
> arch=compute_50,code=sm_50;-gencode arch=compute_52,code=sm_52;-gencode
> arch=compute_52,code=sm_52;-gencode arch=compute_52,code=sm_52;-gencode
> arch=compute_52,code=sm_52;-use_fast_math;-w;--ptxas-options=-v")
> list(APPEND CUDA_NVCC_FLAGS "-std
> c++11;-O2;-DVERBOSE;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES")
> SET(CUDA_PROPAGATE_HOST_FLAGS OFF)
> CUDA_ADD_EXECUTABLE(Gate Gate.cc ${sources} ${sourcesGPU} ${headers})
> ELSE(GATE_USE_GPU AND CUDA_FOUND)
> ADD_EXECUTABLE(Gate Gate.cc ${sources} ${headers})
> ENDIF(GATE_USE_GPU AND CUDA_FOUND)
> %%%%
>
> As far as I understood, this is something related to your GPU Compute
> Capability, mine was GTX 980M with 5.2 (also written as 52) you can check
> yours from the link below (6.1 for GTX 1080)
> https://developer.nvidia.com/cuda-gpus
>
>
>
> On Wed, Jul 4, 2018 at 1:00 PM, <
> gate-users-request at lists.opengatecollaboration.org> wrote:
>
>> Send Gate-users mailing list submissions to
>> gate-users at lists.opengatecollaboration.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>> or, via email, send a message with subject or body 'help' to
>> gate-users-request at lists.opengatecollaboration.org
>>
>> You can reach the person managing the list at
>> gate-users-owner at lists.opengatecollaboration.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Gate-users digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Re: Install Gate based on GPU (Mery MB)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Wed, 4 Jul 2018 11:51:01 +0430
>> From: Mery MB <mery.mb.mph at gmail.com>
>> To: gate-users at lists.opengatecollaboration.org
>> Subject: Re: [Gate-users] Install Gate based on GPU
>> Message-ID:
>> <CAKkaMoObYJh3TakRYdjv5ZutNyt3se89PouNHxkK_nL0i=
>> vB6Q at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Dear Gate User
>>
>> As I write before, I want to install Gate based on GPU (Graphic Processing
>> Unit) to increase my speed on cluster for running my programs.
>> I change my system to a system with NVIDEA Graphic card (Nvidia GeForce
>> GTX
>> 1080) and installed the Graphic card and CUDA tools
>> Then I tried to install Gate 7.2 on my system but I get the below error. I
>> wonder if someone have experience about this issue and can help me?
>> Is there any special NVIDEA Graphic card for Gate?
>>
>> The error:
>>
>> [ 6%] Linking CXX static library libMetaIO.a
>> [ 6%] Built target MetaIO
>> [ 6%] Building NVCC (Device) object
>> CMakeFiles/Gate.dir/source/gpu/src/Gate_generated_GateGPUManager.cu.o
>> *nvcc fatal : Unsupported gpu architecture 'compute_20'*
>> CMake Error at Gate_generated_GateGPUManager.cu.o.cmake:207 (message):
>> Error generating
>>
>>
>> /home/bioinformatics-lab-03/Behmadi/Build/Gate/CMakeFiles/Gate.dir/source/gpu/src/./Gate_generated_GateGPUManager.cu.o
>>
>>
>> CMakeFiles/Gate.dir/build.make:63: recipe for target
>> 'CMakeFiles/Gate.dir/source/gpu/src/Gate_generated_GateGPUManager.cu.o'
>> failed
>> make[2]: ***
>> [CMakeFiles/Gate.dir/source/gpu/src/Gate_generated_GateGPUManager.cu.o]
>> Error 1
>> CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/Gate.dir/all'
>> failed
>> make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
>> Makefile:127: recipe for target 'all' failed
>> make: *** [all] Error 2
>>
>>
>> Best
>> Mery
>>
>>
>>
>> On Wed, Jun 27, 2018 at 1:03 PM Mathieu Dupont <mdupont at cppm.in2p3.fr>
>> wrote:
>>
>> > I'm not an expert of GPU but according to the documentation, GATE needs
>> > CUDA for running on GPU and I see that you have a radeon GPU which is
>> > not compatible with CUDA (as far as I know)
>> >
>> > On Wed, 27 Jun 2018 12:37:49 +0430
>> > Mery MB <mery.mb.mph at gmail.com> wrote:
>> >
>> > > Dear Gate Usre
>> > >
>> > > I want to install Gate based on GPU (Graphic Processing Unit) to
>> > > increase my speed on cluster for running my programs ?
>> > > I wonder if someone can help me in this issue or have any experience?
>> > > My Graphic card is as follow based on the script which I write in
>> > > terminal:
>> > >
>> > > lspci -vnn | grep VGA -A 12
>> > >
>> > > 04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
>> > > [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series] [1002:68f9]
>> > > (prog-if 00 [VGA controller])
>> > > Subsystem: PC Partner Limited / Sapphire Technology Cedar [Radeon
>> > > HD 5000/6000/7350/8350 Series] [174b:e199]
>> > > Physical Slot: 2
>> > > Flags: bus master, fast devsel, latency 0, IRQ 55
>> > > Memory at e0000000 (64-bit, prefetchable) [size=256M]
>> > > Memory at f0100000 (64-bit, non-prefetchable) [size=128K]
>> > > I/O ports at 2000 [size=256]
>> > > Expansion ROM at f0140000 [disabled] [size=128K]
>> > > Capabilities: <access denied>
>> > > Kernel driver in use: radeon
>> > > Kernel modules: radeon
>> > >
>> > > 04:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI]
>> > > Cedar HDMI Audio [Radeon HD 5400/6300 Series] [1002:aa68]
>> > >
>> > >
>> > >
>> > > Best
>> > > Mery
>> > >
>> > >
>> > >
>> > > [image: Mailtrack]
>> > > <
>> >
>> https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality1&
>> > >
>> > > Sent
>> > > with Mailtrack
>> > > <
>> >
>> https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality1&
>> > >
>> >
>> >
>> >
>> > --
>> > Mathieu Dupont - Ingénieur de Recherche
>> > CENTRE DE PHYSIQUE DES PARTICULES DE MARSEILLE
>> > UMR 7346 - Aix-Marseille Université - CNRS/IN2P3
>> > 163 avenue de Luminy, Case 902, F -13288 Marseille CEDEX 09
>> > Tél.: +33 (0) 4 91 82 72 19
>> > Site : cppm.in2p3.fr - Email : mdupont at cppm.in2p3.fr
>> >
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20180704/bbe63b34/attachment-0001.html
>> >
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>>
>> ------------------------------
>>
>> End of Gate-users Digest, Vol 146, Issue 4
>> ******************************************
>>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20180710/a1a05252/attachment-0001.html>
More information about the Gate-users
mailing list