[m5-users] AttributeError: 'function' object has no attribute 'cpu'
Hi guys, I am interested in M5 for architecture simulating. I tried to build an ALPHA_FS version of the M5 simulator in my x86-64 computer, downloaded and installed the full-system binary and disk image files. Then I passed all the quick tests. The troubles arose when I tried to run the full-system using fs.py in m5/configs/examples. Can any of you give me some hints please? Or, should I do some work to modify the default fs.py to generate a new one before any simulating job? Thank you very much. Following are the errors detailed: mli...@ubuntu:~/m5$ ./build/ALPHA_FS/m5.opt configs/example/fs.py -b NetperfMaerts M5 Simulator System Copyright (c) 2001-2008 The Regents of The University of Michigan All Rights Reserved M5 compiled Mar 2 2010 19:29:21 M5 revision Unknown M5 started Mar 2 2010 19:34:11 M5 executing on ubuntu command line: ./build/ALPHA_FS/m5.opt configs/example/fs.py -b NetperfMaerts Traceback (most recent call last): File string, line 1, in module File /home/mliu20/m5/src/python/m5/main.py, line 359, in main exec filecode in scope File configs/example/fs.py, line 124, in module CacheConfig.config_cache(options, system) File /home/mliu20/m5/configs/common/CacheConfig.py, line 51, in config_cache system.cpu[i].connectMemPorts(system.membus) AttributeError: 'function' object has no attribute 'cpu' --- Mingliang Liu Graduate Intern Technical Cloud, Intel Labs China ___ m5-users mailing list m5-users@m5sim.org http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
Re: [m5-users] AttributeError: 'function' object has no attribute 'cpu'
This bug was in the development repository briefly but has been fixed. If you pull the new changes it should go away. Gabe Liu, Mingliang wrote: Hi guys, I am interested in M5 for architecture simulating. I tried to build an ALPHA_FS version of the M5 simulator in my x86-64 computer, downloaded and installed the full-system binary and disk image files. Then I passed all the quick tests. The troubles arose when I tried to run the full-system using fs.py in m5/configs/examples. Can any of you give me some hints please? Or, should I do some work to modify the default fs.py to generate a new one before any simulating job? Thank you very much. Following are the errors detailed: /mli...@ubuntu:~/m5$ ./build/ALPHA_FS/m5.opt configs/example/fs.py -b NetperfMaerts/ /M5 Simulator System/ /Copyright (c) 2001-2008/ /The Regents of The University of Michigan/ /All Rights Reserved/ /M5 compiled Mar 2 2010 19:29:21/ /M5 revision Unknown/ /M5 started Mar 2 2010 19:34:11/ /M5 executing on ubuntu/ /command line: ./build/ALPHA_FS/m5.opt configs/example/fs.py -b NetperfMaerts/ /Traceback (most recent call last):/ / File string, line 1, in module/ / File /home/mliu20/m5/src/python/m5/main.py, line 359, in main/ /exec filecode in scope/ / File configs/example/fs.py, line 124, in module/ /CacheConfig.config_cache(options, system)/ / File /home/mliu20/m5/configs/common/CacheConfig.py, line 51, in config_cache/ /system.cpu[i].connectMemPorts(system.membus)/ /AttributeError: 'function' object has no attribute 'cpu'/ --- Mingliang Liu Graduate Intern Technical Cloud, Intel Labs China ___ m5-users mailing list m5-users@m5sim.org http://m5sim.org/cgi-bin/mailman/listinfo/m5-users ___ m5-users mailing list m5-users@m5sim.org http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
[m5-users] Linux v2.6.27 limits the number of cores to 32
Hi, I am running into an issue with running applications in ALPHA_FS on more than 32 cores. The cores of index greater than or equal to 32 sit and spin, as indicated by their uniformly small number of committed instructions, during parallel sections of benchmarks with more than 32 threads. The problem exists in kernel v2.6.27, which we built using the method described on the M5 site. I have done some testing, and I have identified that our kernels, v2.6.13 and v2.3.16, both schedule threads on all 64 cores. Further, the file, `.config.m5' contains a line to configure the maximum number of cores, which is different for different linux versions: 2.6.13, 2.6.16: CONFIG_NR_CPUS=64 2.6.22, 2.6.27: CONFIG_NR_CPUS=32 I've tried building a few different versions, and each asks Use M5 64 Processor Tsumani Modification (BIG_TSUNAMI) [Y/n/?], but setting this doesn't seem to have an affect on kernels 2.6.22 or 2.6.27. The config script restricts the CONFIG_NR_CPUS flag to 2-32 cores for kernel versions 2.6.22 and 2.6.26. Can someone give some insight into how to fix this so the v2.6.27 scheduler works with 64 cores? Thank you, Joel -- Joel Hestness PhD Student, Computer Architecture Dept. of Computer Science, University of Texas - Austin http://www.cs.utexas.edu/~hestness ___ m5-users mailing list m5-users@m5sim.org http://m5sim.org/cgi-bin/mailman/listinfo/m5-users