def should_recompile():
 source_files = ('conv_util.cu', 'conv_util.cuh', 'cudaconv2.cuh', 'filter_acts.cu', 'img_acts.cu', 'nvmatrix.cu', 'nvmatrix.cuh', 'nvmatrix_kernels.cu', 'nvmatrix_kernels.cuh', 'nvmatrix_operators.cuh', 'weight_acts.cu')
 stat_times = [os.stat(os.path.join(this_dir, source_file))[stat.ST_MTIME] for source_file in source_files]
 date = max(stat_times)
 _logger.debug('max date: %f', date)
 if ((not os.path.exists(cuda_convnet_so)) or (date >= os.stat(cuda_convnet_so)[stat.ST_MTIME])):
  return True
 return False

def should_recompile ( ) : source_files = ( 'conv_util.cu' , 'conv_util.cuh' , 'cudaconv2.cuh' , 'filter_acts.cu' , 'img_acts.cu' , 'nvmatrix.cu' , 'nvmatrix.cuh' , 'nvmatrix_kernels.cu' , 'nvmatrix_kernels.cuh' , 'nvmatrix_operators.cuh' , 'weight_acts.cu' ) stat_times = [ os . stat ( os . path . join ( this_dir , source_file ) ) [ stat . ST_MTIME ] for source_file in source_files ] date = max ( stat_times ) _logger . debug ( 'max date: %f' , date ) if ( ( not os . path . exists ( cuda_convnet_so ) ) or ( date >= os . stat ( cuda_convnet_so ) [ stat . ST_MTIME ] ) ) : return True return False
returns true if the .