def avail_mem_sat(gpu, mem):
    """ Return true if there is at least mem available memory """
    avail_mem = float(gpu.entry['memory.total']) - float(gpu.entry[
        'memory.used'])
    return mem <= avail_mem
