problema durante a instalação do simulador multi2sim

0

Eu sou novo no Ubuntu e quando estou tentando instalar o multi2sim, recebo este erro:

CXX      WorkItemIsa.o
WorkItemIsa.cc: In member function ‘void SI::WorkItem::ISA_V_CVT_I32_F32_Impl(SI::Instruction*)’:
WorkItemIsa.cc:2335:23: error: ‘isnan’ was not declared in this scope
  else if (isnan(fvalue) || fvalue == 0.0f || fvalue == -0.0f)
                       ^
WorkItemIsa.cc:2335:23: note: suggested alternative:
In file included from WorkItemIsa.cc:22:0:
/usr/include/c++/5/cmath:641:5: note:   ‘std::isnan’
     isnan(_Tp __x)
     ^
Makefile:456: recipe for target 'WorkItemIsa.o' failed
make[4]: *** [WorkItemIsa.o] Error 1
make[4]: Leaving directory '/home/yasmine/Downloads/multi2sim-5.0/src/arch/southern-islands/emulator'
Makefile:360: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/yasmine/Downloads/multi2sim-5.0/src/arch/southern-islands'
Makefile:363: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/yasmine/Downloads/multi2sim-5.0/src/arch'
Makefile:568: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/yasmine/Downloads/multi2sim-5.0/src'
Makefile:570: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Eu não sei o que devo fazer ou como resolvê-lo !! Alguém familiarizado com este simulador pode me ajudar ?!

    
por jasmine 05.05.2016 / 19:11

2 respostas

2

Basta encontrar esta linha:

else if (isnan(fvalue) || fvalue == 0.0f || fvalue == -0.0f)

que está dentro do arquivo /multi2sim5.0/scr/arch/southern-islands/emulator/WorkItemIsa.cc .

Adicione std:: antes de isnan . Deveria ser assim:

else if (std::isnan(fvalue) || fvalue == 0.0f || fvalue == -0.0f)

    
por Melgarejo 06.10.2016 / 17:46
0

A instalação do Multi2Sim no Ubuntu 16.04 não deve ser feita com make . O README principal da página do Github do projeto ( link ) diz para fazer o seguinte:

  1. Instale o Docker ( link )

  2. Dentro do terminal Docker, execute o seguinte para compilar e instalar o Multi2Sim:

    docker pull multi2sim/multi2sim
    docker run -it multi2sim/multi2sim bash
    
  3. Para executar o Multi2Sim, abra o terminal do Docker e execute:

    m2s
    
por Huan.Chen 11.12.2016 / 10:10

Tags