A poderosa nuvem: Intel® DevCloud com GPU Iris Xe Max!

Neste artigo veremos como utilizar o poder computacional das últimas gerações de hardware Intel na nuvem DevCloud gratuitamente, mas por tempo limitado. Além de processadores de última geração, poderemos testar a nova e primeira GPU da Intel dedicada Iris Xe MAX.

[ Hits: 6.181 ]

Por: Alessandro de Oliveira Faria (A.K.A. CABELO) em 30/06/2021 | Blog: http://assuntonerd.com.br


Mão na massa com a GPU Iris Xe Max



Agora conecte na DevCloud via ssh utilizando o comando abaixo com sua conta devidamente configurada. Se tudo estiver corretamente funcionando teremos a tela abaixo:

ssh devcloud
###############################################################################
#
# Welcome to the Intel DevCloud for oneAPI Projects!
#
# 1) See https://devcloud.intel.com/oneapi/ for instructions and rules for
# the OneAPI Instance.
#
# 2) See https://github.com/intel/FPGA-Devcloud for instructions and rules for
# the FPGA Instance.
#
# Note: Your invitation email sent to you contains the authentication URL.
#
# If you have any questions regarding the cloud usage, post them at
# https://software.intel.com/en-us/forums/intel-devcloud
#
# Intel DevCloud Team
#
###############################################################################
#
# Note: Cryptocurrency mining on the Intel DevCloud is forbidden.
# Mining will lead to immediate termination of your account.
#
###############################################################################
Last login: Mon Jun 28 22:51:06 2021 from 10.9.0.249
u99999@login-2:~$



Agora criaremos o arquivo ola_Iris_XE_Max.sh com o seguinte conteúdo abaixo.

tee >  ola_Iris_XE_Max.sh <<EOF
#!/bin/bash
wget http://service.assuntonerd.com.br/downloads/cmake-gpu.tar.gz   
tar -zxvf cmake-gpu.tar.gz  
mkdir -p cmake-gpu/build  
cd cmake-gpu/build  
cmake ..  
make run
EOF


Este script efetuará o download do código fonte exemplo em C, que executa um loop for, e conta até 15 utilizando a GPU, descompacta o arquivo .tar.gz, cria a pasta build efetua a compilação e executa.

Para testar o funcionamento execute o seguinte comando para submeter o script para processamento:

qsub -l nodes=1:iris_xe_max:ppn=2 -d . ola_Iris_XE_Max.sh
911915.v-qsvr-1.aidevcloud

Após alguns segundos digite ls e verifique o conteúdo do arquivo de saída com o comando cat. Veremos o seguinte resultado:

cat ola_Iris_XE_Max.sh.o911915
########################################################################
#      Date:           Mon 28 Jun 2021 11:45:08 PM PDT
#    Job ID:           911915.v-qsvr-1.aidevcloud
#      User:           u99999
# Resources:           neednodes=1:iris_xe_max:ppn=2,nodes=1:iris_xe_max:ppn=2,walltime=06:00:00
########################################################################

cmake-gpu/CMakeLists.txt
cmake-gpu/License.txt
cmake-gpu/README.md
cmake-gpu/sample.json
cmake-gpu/src/
cmake-gpu/src/CMakeLists.txt
cmake-gpu/src/main.cpp
cmake-gpu/third-party-programs.txt
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is Clang 12.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /glob/development-tools/versions/oneapi/2021.2/inteloneapi/compiler/2021.2.0/linux/bin/dpcpp
-- Check for working CXX compiler: /glob/development-tools/versions/oneapi/2021.2/inteloneapi/compiler/2021.2.0/linux/bin/dpcpp -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/u47345/cmake-gpu/build
Scanning dependencies of target cmake-gpu
[ 50%] Building CXX object src/CMakeFiles/cmake-gpu.dir/main.cpp.o
[100%] Linking CXX executable ../cmake-gpu
[100%] Built target cmake-gpu
Scanning dependencies of target build
[100%] Built target build
Scanning dependencies of target run
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[100%] Built target run

########################################################################
# End of output for job 911915.v-qsvr-1.aidevcloud
# Date: Mon 28 Jun 2021 11:45:25 PM PDT
########################################################################



Mais informações no link oficial: Intel® DevCloud https://software.intel.com/content/www/us/en/develop/tools/devcloud.html ou em contato diretamente comigo em cabelo@opensuse.org.

"O próximo grande salto evolutivo da humanidade será a descoberta de que cooperar é melhor que competir... Pois colaborar atrai amigos, competir atrai inimigos!"
Página anterior    

Páginas do artigo
   1. Introdução Devcloud
   2. Conceitos
   3. Mão na massa com a GPU Iris Xe Max
Outros artigos deste autor

Inserindo o recurso de LIXEIRA nos compartilhamentos Samba

Artigo número 100: AR.Drone - O robô voador com Linux embarcado

RealBasic 2005: Um Visual Basic multi-plataforma!

LibreOffice em nuvem - Crie seu servidor Web Office

openSUSE Linux no Windows 10 sem virtualização

Leitura recomendada

Tutorial SFML

Como funcionam os alocadores de memória do STD C?

Desenvolvendo aplicativo para autenticação biométrica utilizando a Libfprint

Algum humor e C++ Design Patterns (parte 2)

lib cURL - Trabalhe com URLs em C

  
Comentários
[1] Comentário enviado por Alannah358 em 20/07/2021 - 03:34h

Thanks for sharing.I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one.
https://www.myaccountaccess.bid/

[2] Comentário enviado por maurixnovatrento em 30/07/2021 - 20:08h


Muito bom.

___________________________________________________________
[code]Conhecimento não se Leva para o Túmulo.
https://github.com/MauricioFerrari-NovaTrento [/code]


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts