File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 if getattr (value , "__module__" , "" ).startswith ("pyamdgpuinfo." ):
66 value .__module__ = __name__
77# make sure value doesn't hang around as a module attribute
8- del value # pylint: disable=undefined-loop-variable
8+ del value # pylint: disable=undefined-loop-variable
Original file line number Diff line number Diff line change @@ -367,7 +367,6 @@ cdef class GPUInfo:
367367 if self .utilisation_polling:
368368 raise RuntimeError (" Polling already started" )
369369 pthread_cy.pthread_attr_init(& attr)
370- # why detached?
371370 pthread_cy.pthread_attr_setdetachstate(& attr, pthread_cy.PTHREAD_CREATE_DETACHED)
372371 self .thread_args = < poll_args_t* > malloc(sizeof(poll_args_t))
373372 if not self .thread_args:
Original file line number Diff line number Diff line change 1111 sources = ["pyamdgpuinfo/_impl.pyx" ],
1212 include_dirs = ["/usr/include/libdrm" ],
1313 libraries = ["drm_amdgpu" ],
14- extra_compile_args = [' -DCYTHON_USE_TYPE_SPECS=1' ],
14+ extra_compile_args = [" -DCYTHON_USE_TYPE_SPECS=1" ],
1515 )
1616]
1717
You can’t perform that action at this time.
0 commit comments