Skip to content
Snippets Groups Projects
Commit 29e42143 authored by Pramod Kumbhar's avatar Pramod Kumbhar Committed by Todd Gamblin
Browse files

fix for bluegene-q platform (#1980)

* fix for  bluegene-q platform

* change powerpc to ppc64

* change CNK to cnk
parent 83c9f7a4
No related branches found
No related tags found
No related merge requests found
from spack.architecture import OperatingSystem
class Cnk(OperatingSystem):
""" Compute Node Kernel (CNK) is the node level operating system for
the IBM Blue Gene series of supercomputers. The compute nodes of the
Blue Gene family of supercomputers run CNK, a lightweight kernel that
runs on each node and supports one application running for one user
on that node."""
def __init__(self):
name = 'cnk'
version = '1'
super(Cnk, self).__init__(name, version)
def __str__(self):
return self.name
import os
from spack.architecture import Platform, Target
from spack.operating_systems.linux_distro import LinuxDistro
from spack.operating_systems.cnk import Cnk
class Bgq(Platform):
priority = 30
front_end = 'power7'
back_end = 'powerpc'
default = 'powerpc'
back_end = 'ppc64'
default = 'ppc64'
def __init__(self):
''' IBM Blue Gene/Q system platform.'''
super(Bgq, self).__init__('bgq')
self.add_target(self.front_end, Target(self.front_end))
self.add_target(self.back_end, Target(self.back_end,))
self.add_target(self.back_end, Target(self.back_end))
front_distro = LinuxDistro()
back_distro = Cnk()
self.front_os = str(front_distro)
self.back_os = str(back_distro)
self.default_os = self.back_os
self.add_operating_system(str(front_distro), front_distro)
self.add_operating_system(str(back_distro), back_distro)
@classmethod
def detect(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment