/usr/local/lib64/python3.6/site-packages/pyarrow/__pycache__
Edit: /usr/local/lib64/python3.6/site-packages/pyarrow/__pycache__/plasma.cpython-36.pyc (4069B)
3
9%Eg @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m
Z
mZmZm
Z
mZmZmZmZ ejjejd ddZdadd Zdd Ze jdd
dZdS )
N)ObjectIDObjectNotAvailablePlasmaBufferPlasmaClientconnectPlasmaObjectExistsPlasmaObjectNotFoundPlasmaStoreFull
tensorflowzplasma_op.soc C s dd l } | jtad S )Nr )r
load_op_libraryTF_PLASMA_OP_PATHtf_plasma_op)tf r :/usr/local/lib64/python3.6/site-packages/pyarrow/plasma.pyload_plasma_tensorflow_op. s r c C s. ydd l } td| j W n tk
r. Y nX td tjjtjjt}tjj |dd}tjj |dd}| j
j }tj
dkrdd g| }d
ddd
|d|ddtj g }|dd tj D 7 }|ddddg7 }||7 }|| j
j 7 }|dg7 }| jj r|dg7 }tdt| tj| | jtad S )Nr zTensorFlow version: z!Compiling Plasma TensorFlow Op...r
zplasma_op.cczplasma_op.sodarwinz
-undefinedZdynamic_lookupzg++z
-std=c++11z-gz-sharedz-oz-DNDEBUGz-Ic S s g | ]}d | qS )z-Lr ).0dirr r r
E s z.build_plasma_tensorflow_op..z-lplasmaz-larrow_pythonz-larrowz-fPICz-O2z
-DGOOGLE_CUDAzRunning command )r
print__version__ImportErrorospathdirnamerealpath__file__join sysconfigZget_compile_flagssysplatformpaZget_includeZget_library_dirsZget_link_flagstestZis_built_with_cudastr
subprocess
check_callr r r
)r Zdir_pathZcc_pathZso_pathZ tf_cflagscmdr r r build_plasma_tensorflow_op4 s0
r( Fc c s| |r|rt dtjdd}z6tjj|d}tjjtjd d}tjj|s`tjjt j
dd}|d|d t| g} |r| d
|g7 } |r| dg7 } |dk r| d
|g7 } d}
d}|rddddddg| } tj
| |
|d}tjd nH|rddg| } tj
| |
|d}tjd ntj
| |
|d}tjd |j }
|
dk rHtd|
f ||fV W d|j dkrl|j tj| X dS )a Start a plasma store process.
Args:
plasma_store_memory (int): Capacity of the plasma store in bytes.
use_valgrind (bool): True if the plasma store should be started inside
of valgrind. If this is True, use_profiler must be False.
use_profiler (bool): True if the plasma store should be started inside
a profiler. If this is True, use_valgrind must be False.
plasma_directory (str): Directory where plasma memory mapped files
will be stored.
use_hugepages (bool): True if the plasma store should use huge pages.
external_store (str): External store to use for evicted objects.
Return:
A tuple of the name of the plasma store socket and the process ID of
the plasma store process.
z2Cannot use valgrind and profiler at the same time.ztest_plasma-)prefixzplasma.sockr zplasma-store-serverbinz-sz-mz-dz-hNz-eZvalgrindz--track-origins=yesz--leak-check=fullz--show-leak-kinds=allz!--leak-check-heuristics=stdstringz--error-exitcode=1)stdoutstderrg ?z--tool=callgrindg?z-plasma_store exited unexpectedly with code %d) Exceptiontempfilemkdtempr r r r" __path__existsr r) r$ r% PopentimesleeppollRuntimeErrorkillshutilrmtree)Zplasma_store_memoryZuse_valgrindZuse_profilerZplasma_directoryZ
use_hugepagesZexternal_storeZtmpdirZplasma_store_nameZplasma_store_executablecommandZstdout_fileZstderr_fileprocrcr r r start_plasma_storeQ s^
r= )FFNFN)
contextlibr Zpyarrowr" r8 r% r r. r3 Zpyarrow._plasmar r r r r r r r r r r0 r r
r r( contextmanagerr= r r r r s (