prop = torch.cuda.get_device_properties(0)
peak_tflops = 165.0 # RTX 4090 dense bf16 tensor-core spec
bandwidth_tbs = 1.008 # GDDR6X spec
print(f'{prop.name}, {prop.total_memory / 1e9:.0f} GB')
print(f'ridge point = {peak_tflops / bandwidth_tbs:.0f} FLOP/byte')