Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANYNET can not be run #28

Open
Adnan1986 opened this issue Apr 8, 2020 · 11 comments
Open

ANYNET can not be run #28

Adnan1986 opened this issue Apr 8, 2020 · 11 comments

Comments

@Adnan1986
Copy link

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
Copy link
Author

Is there anyone help me in this case?

Thanks

@DEEPAK-PROJECTS
Copy link

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

@Yangliss
Copy link

Yangliss commented Jan 18, 2022

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

@varmakrishna
Copy link

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
Copy link

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
Copy link

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
Copy link

SMostafaMajidi commented Feb 1, 2024

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
Copy link

wangplin commented Feb 4, 2024

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
Copy link

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
Copy link

ravenCrown0627 commented Jun 8, 2024

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: anynet_config

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: anynet_config

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: anynet_config

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

@ravenCrown0627
Copy link

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, 请问你的解决了吗?能不能交流一下,十分感谢!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants