Edit File: function_calc_isolated_cores.cpython-36.pyc
3 �<�ek � @ sN d dl Z d dlZd dlZddlmZ d dljZejj � Z G dd� dej�ZdS )� N� )�basec s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )�calc_isolated_coresz� Calculates and returns isolated cores. The argument specifies how many cores per socket reserve for housekeeping. If not specified, 1 core per socket is reserved for housekeeping and the rest is isolated. c s t t| �jdd� d S )Nr r )�superr �__init__)�self)� __class__� �2/usr/lib/python3.6/function_calc_isolated_cores.pyr s zcalc_isolated_cores.__init__c sP t t| �j|�sd S d}t|�dkrj|d j� sBt|d �dk r^tjd|d | jf � d S t|d �}i }x�t j tjj tjd��D ]|}tjj|�dd � }|j� r�tjj |d�}tjj|�s�tjd||f � q�| jj|�j� }|j� r�|j|g �|g ||<