Hi All,

Why was the following piece of code added to Mesh_XY.py and not to
Cluster.py ?

# Register nodes with filesystem
    def registerTopology(self, options):
        for i in xrange(options.num_cpus):
            FileSystemConfig.register_node([i],
                    MemorySize(options.mem_size) / options.num_cpus, i)

Is this a correct expression: MemorySize(options.mem_size) /
options.num_cpus, where a MemorySize
object is being divided by an Integer ? Also,
FileSystemConfig.register_node() expects a numerical type
argument being passed to the mem parameter, whereas currently a
MemorySize() argument is being
passed. This is resulting in a type error at the following line in
FileSystemConfig.register_node().

file_append((nodedir, 'meminfo'),
                 'Node %d MemTotal: %dkB' % (node_number,
                 toMemorySize(str(mem))/kibi))

Perhaps MemorySize should be changed to toMemorySize() ?

Thanks and regards,
Sampad Mohapatra

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to