抢占式工作虚拟机是否支持 GPU? This documentation claim :
GPUs cannot be attached to preemptible virtual machines in Dataproc clusters.
但是latter section提及:
Attach GPUs to the master and primary and preemptible worker nodes in a Dataproc cluster when creating the cluster using the
‑‑master-accelerator
,‑‑worker-accelerator
, and‑‑preemptible-accelerator
flags.
和gcloud dataproc SDK提到了这一点。
实在是太困惑了,请问有人可以解释一下吗?
最佳答案
Dataproc 集群中的抢占式工作线程支持 GPU:
CLUSTER_NAME=<cluster_name>
REGION=<region>
gcloud dataproc clusters create ${CLUSTER_NAME} \
--region=${REGION} \
--num-preemptible-workers=2 \
--preemptible-worker-accelerator=type=nvidia-tesla-p100
目前存在一个错误,该错误会阻止 GPU 连接到可抢占的虚拟机。它已经修复,应该会在下周内推出。
关于google-cloud-platform - Dataproc 上可抢占工作线程虚拟机的 GPU 支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60040757/