Search notes:

torch.cuda

import torch

print(f'CUDA is available       : {torch.cuda.is_available()}'    )
print(f'Available GPUs          : {torch.cuda.device_count()}'    )
print(f'Current device          : {torch.cuda.current_device()}'  )
print(f'Current device location : {torch.cuda.device(0)}'         ) # prints something like <torch.cuda.device object at 0x7f7080c39310>
print(f'Name of the device      : {torch.cuda.get_device_name(0)}')

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759399321, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/libraries/torch/members/cuda/index(36): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78