@@ -274,7 +274,9 @@ message AllocationPolicy {
274274 }
275275
276276 // Device name that the guest operating system will see.
277- // If not specified, this is default to the disk name.
277+ // It is used by Runnable.volumes field to mount disks. So please specify
278+ // the device_name if you want Batch to help mount the disk, and it should
279+ // match the device_name field in volumes.
278280 string device_name = 3 ;
279281 }
280282
@@ -287,6 +289,7 @@ message AllocationPolicy {
287289 // The number of accelerators of this type.
288290 int64 count = 2 ;
289291
292+ // Deprecated: please use instances[0].install_gpu_drivers instead.
290293 bool install_gpu_drivers = 3 [deprecated = true ];
291294 }
292295
@@ -325,6 +328,12 @@ message AllocationPolicy {
325328 // c++ keyword conflict.
326329 string instance_template = 2 ;
327330 }
331+
332+ // Set this field true if users want Batch to help fetch drivers from a
333+ // third party location and install them for GPUs specified in
334+ // policy.accelerators or instance_template on their behalf. Default is
335+ // false.
336+ bool install_gpu_drivers = 3 ;
328337 }
329338
330339 // A network interface.
@@ -378,6 +387,9 @@ message AllocationPolicy {
378387 // Only instances[0] is supported now.
379388 repeated InstancePolicyOrTemplate instances = 8 ;
380389
390+ // Service account that VMs will run as.
391+ ServiceAccount service_account = 9 ;
392+
381393 // Labels applied to all VM instances and other resources
382394 // created by AllocationPolicy.
383395 // Labels could be user provided or system generated.
@@ -443,3 +455,12 @@ message TaskGroup {
443455 // VMs running the Batch tasks in the same TaskGroup.
444456 bool permissive_ssh = 12 ;
445457}
458+
459+ // Carries information about a Google Cloud service account.
460+ message ServiceAccount {
461+ // Email address of the service account. If not specified, the default
462+ // Compute Engine service account for the project will be used. If instance
463+ // template is being used, the service account has to be specified in the
464+ // instance template and it has to match the email field here.
465+ string email = 1 ;
466+ }
0 commit comments