HF RL Explorer

Task: Get Current Available GPUs in TensorFlow Programmatically

Task: Get Current Available GPUs in TensorFlow Programmatically: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that programmatically detects and lists all currently available GPU devices recognized by TensorFlow, without relying on parsing log messages. The solution should…

The task

Write a Python script that programmatically detects and lists all currently available GPU devices recognized by TensorFlow, without relying on parsing log messages. The solution should respect the `CUDA_VISIBLE_DEVICES` environment variable and return device names in TensorFlow's device naming format (e.g., `/gpu:0`,…

Part of PrimeIntellect/Terminal-Lego-15k.