booksim / booksim2

BookSim 2.0
http://nocs.stanford.edu/booksim.html
Other
255 stars 158 forks source link

ANYNET can not be run #28

Open Adnan1986 opened 4 years ago

Adnan1986 commented 4 years ago

Hi,

I'm trying to run the anynet_config and anynet_file example files, even by using the default number I can not get an answer. I used : ./booksim examples/anynet/anynet_config

and I get: Anynet:can't open network file anynet_file

I add following line in the anynet.cpp : file_name.insert(0, "examples/anynet/");

like here:

void AnyNet::_ComputeSize( const Configuration &config ){ file_name.insert(0, "examples/anynet/"); file_name = config.GetStr("network_file"); if(file_name==""){ cout<<"No network file name provided"<<endl; exit(-1); }

but I still have same problem, Anynet:can't open network file anynet_file

Could you please help me to fix this.

Thanks

Adnan1986 commented 4 years ago

Is there anyone help me in this case?

Thanks

DEEPAK-PROJECTS commented 3 years ago

were you able to access this : https://nocs.stanford.edu/cgi-bin/svn.cgi/booksim2.0 can you help running booksim?

Yangliss commented 2 years ago

Hi, how did you solve this problem? Could you please share the solution? Thank you soooo much!!! @Adnan1986 @DEEPAK-PROJECTS

varmakrishna commented 2 years ago

Hi, how did you solve this problem? Could you please share the solution? Thank you soooo much!!! @Adnan1986 @DEEPAK-PROJECTS

Hello @Yangliss , @Adnan1986 @DEEPAK-PROJECTS , have you found the solution for this?? If so . please let me know. Thanks on advance.

QianpengLi577 commented 1 year ago

Hi, how did you solve this problem? Could you please share the solution? Thank you soooo much!!! @Adnan1986 @DEEPAK-PROJECTS

Hello @Yangliss , @Adnan1986 @DEEPAK-PROJECTS , have you found the solution for this?? If so . please let me know. Thanks on advance.

I test on Ubuntu 18.04

You can clone booksim2 via git clone https://github.com/booksim/booksim2.git

then enter folder src

cd booksim

cd src

just make and wait for finsh

make

When I make, two cmds do not exist. I update them with the following command

sudo apt-get install flex

sudo apt-get install bison

After making is successful, run the following command to run the example

./booksim examples/torus88

yully1117 commented 1 year ago

Hi, how did you solve this problem? Could you please share the solution? Thank you soooo much!!! @Adnan1986 @DEEPAK-PROJECTS

Hello @Yangliss , @Adnan1986 @DEEPAK-PROJECTS , have you found the solution for this?? If so . please let me know. Thanks on advance.

I test on Ubuntu 18.04

You can clone booksim2 via git clone https://github.com/booksim/booksim2.git

then enter folder src

cd booksim

cd src

just make and wait for finsh

make

When I make, two cmds do not exist. I update them with the following command

sudo apt-get install flex

sudo apt-get install bison

After making is successful, run the following command to run the example

./booksim examples/torus88

大佬您好: 我用ANYNET写了一个拓扑结构,但是运行的时候卡在了routing table的获取。请问您知道是什么原因吗?有何解决方法? 谢谢:)

SMostafaMajidi commented 7 months ago

I have an error when make booksim. make: flex: No such file or directory make: [Makefile:61: lex.yy.c] Error 127 I test it on ubuntu 22.04 and 23.10 with gcc 10.05

wangplin commented 7 months ago

I have an error when make booksim. make: flex: No such file or directory make: [Makefile:61: lex.yy.c] Error 127 I test it on ubuntu 22.04 and 23.10 with gcc 10.05

You don't have flex installed. Try the following command and make booksim again.

sudo apt-get install flex
zhouwq13 commented 5 months ago

Hi, how did you solve this problem? Could you please share the solution? Thank you soooo much!!! @Adnan1986 @DEEPAK-PROJECTS

Hello @Yangliss , @Adnan1986 @DEEPAK-PROJECTS , have you found the solution for this?? If so . please let me know. Thanks on advance.

I test on Ubuntu 18.04 You can clone booksim2 via git clone https://github.com/booksim/booksim2.git then enter folder src cd booksim cd src just make and wait for finsh make When I make, two cmds do not exist. I update them with the following command sudo apt-get install flex sudo apt-get install bison After making is successful, run the following command to run the example ./booksim examples/torus88

大佬您好: 我用ANYNET写了一个拓扑结构,但是运行的时候卡在了routing table的获取。请问您知道是什么原因吗?有何解决方法? 谢谢:)

Hi, 请问你的解决了吗?能不能交流一下,十分感谢!

ravenCrown0627 commented 3 months ago

For the error of fail to parse the anynet_file, it can be fixed by giving the full path of the anynet_file or the relative path of anynet_file from where you run the booksim

Replication of Error:

File name: _anynetconfig

topology = anynet;
routing_function = min;
network_file = anynet_file;
traffic = uniform;
...

Command used

ravencrown@PC:~/booksim2/src$ ./booksim examples/anynet/anynet_config

Output

Anynet:can't open network file anynet_file

Correction

File name: _anynetconfig

topology = /home/ravencrown/booksim2/src/examples/anynet/anynet_file; 
routing_function = min;
network_file = anynet_file;
traffic = uniform;
...

or as I mentioned before, you could use the relative path from where you run the booksim as shown below: File name: _anynetconfig

topology = examples/anynet/anynet_file; 
routing_function = min;
network_file = anynet_file;
traffic = uniform;
...
ravenCrown0627 commented 3 months ago

Hi, how did you solve this problem? Could you please share the solution? Thank you soooo much!!! @Adnan1986 @DEEPAK-PROJECTS

Hello @Yangliss , @Adnan1986 @DEEPAK-PROJECTS , have you found the solution for this?? If so . please let me know. Thanks on advance.

I test on Ubuntu 18.04 You can clone booksim2 via git clone https://github.com/booksim/booksim2.git then enter folder src cd booksim cd src just make and wait for finsh make When I make, two cmds do not exist. I update them with the following command sudo apt-get install flex sudo apt-get install bison After making is successful, run the following command to run the example ./booksim examples/torus88

大佬您好: 我用ANYNET写了一个拓扑结构,但是运行的时候卡在了routing table的获取。请问您知道是什么原因吗?有何解决方法? 谢谢:)

Hi, 请问你的解决了吗?能不能交流一下,十分感谢!

可以麻烦你详细的说明一下你的问题么?