fix for bluegene-q platform (#1980)
* fix for bluegene-q platform * change powerpc to ppc64 * change CNK to cnk
This commit is contained in:
		 Pramod Kumbhar
					Pramod Kumbhar
				
			
				
					committed by
					
						 Todd Gamblin
						Todd Gamblin
					
				
			
			
				
	
			
			
			 Todd Gamblin
						Todd Gamblin
					
				
			
						parent
						
							83c9f7a4f2
						
					
				
				
					commit
					29e42143e0
				
			
							
								
								
									
										17
									
								
								lib/spack/spack/operating_systems/cnk.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								lib/spack/spack/operating_systems/cnk.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | 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 | ||||||
| @@ -1,17 +1,32 @@ | |||||||
| import os | import os | ||||||
| from spack.architecture import Platform, Target | from spack.architecture import Platform, Target | ||||||
|  | from spack.operating_systems.linux_distro import LinuxDistro | ||||||
|  | from spack.operating_systems.cnk import Cnk | ||||||
|  |  | ||||||
|  |  | ||||||
| class Bgq(Platform): | class Bgq(Platform): | ||||||
|     priority    = 30 |     priority    = 30 | ||||||
|     front_end   = 'power7' |     front_end   = 'power7' | ||||||
|     back_end    = 'powerpc' |     back_end    = 'ppc64' | ||||||
|     default     = 'powerpc' |     default     = 'ppc64' | ||||||
|  |  | ||||||
|     def __init__(self): |     def __init__(self): | ||||||
|  |         ''' IBM Blue Gene/Q system platform.''' | ||||||
|  |  | ||||||
|         super(Bgq, self).__init__('bgq') |         super(Bgq, self).__init__('bgq') | ||||||
|  |  | ||||||
|         self.add_target(self.front_end, Target(self.front_end)) |         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 |     @classmethod | ||||||
|     def detect(self): |     def detect(self): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user