

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Jalankan pekerjaan GPU
<a name="gpu-jobs"></a>

Tugas GPU membantu Anda menjalankan tugas yang menggunakan instans GPU.

Jenis GPU-based instans Amazon EC2 berikut didukung. Untuk informasi selengkapnya, lihat Instans [ Amazon EC2 G3](https://aws.amazon.com/ec2/instance-types/g3/), Instans [ Amazon EC2 G4](https://aws.amazon.com/ec2/instance-types/g4/), Instans [ Amazon EC2 G5, Instans Amazon EC2 G6](https://aws.amazon.com/ec2/instance-types/g5/), Instans [ Amazon EC2 P2](https://aws.amazon.com/ec2/instance-types/g6/), Instans [ Amazon EC2 P4](https://aws.amazon.com/ec2/instance-types/p2/), Instans [ Amazon EC2 P5](https://aws.amazon.com/ec2/instance-types/p3/), Instans [ Amazon EC2 P6, Instans [ Amazon EC2 Trn1](https://aws.amazon.com/ec2/instance-types/p5/), Instans Amazon EC2 Trn2](https://aws.amazon.com/ec2/instance-types/p4/), [https://aws.amazon.com/ec2/instance-types/p6/](https://aws.amazon.com/ec2/instance-types/p6/) [https://aws.amazon.com/ec2/instance-types/trn1/](https://aws.amazon.com/ec2/instance-types/trn1/) [https://aws.amazon.com/ec2/instance-types/trn2/](https://aws.amazon.com/ec2/instance-types/trn2/) [Instans Amazon EC2 Inf1](https://aws.amazon.com/ec2/instance-types/inf1/), Instans [ Amazon EC2 Inf2, Instans Amazon EC2 Dl1](https://aws.amazon.com/ec2/instance-types/inf2/), dan Inst [ ans ](https://aws.amazon.com/ec2/instance-types/dl1/) Amazon EC2 Dl2. [https://aws.amazon.com/ec2/instance-types/dl2q/](https://aws.amazon.com/ec2/instance-types/dl2q/)


|  Tipe instans  |  GPU  |  Memori GPU  |  vCPUs  |  Memori  |  Bandwith jaringan  | 
| --- | --- | --- | --- | --- | --- | 
| g3s.xlarge | 1 | 8 GiB | 4 | 30,5 GiB | 10 Gbps | 
| g3.4xlarge | 1 | 8 GiB | 16 | 122 GiB | Hingga 10 Gbps | 
| g3.8xlarge | 2 | 16 GiB | 32 | 244 GiB | 10 Gbps | 
| g3.16xlarge | 4 | 32 GiB | 64 | 488 GiB | 25 Gbps | 
| g4dn.xlarge | 1 | 16 GiB | 4 | 16 GiB | Hingga 25 Gbps | 
| g4dn.2xlarge | 1 | 16 GiB | 8 | 32 GiB | Hingga 25 Gbps | 
| g4dn.4xlarge | 1 | 16 GiB | 16 | 64 GiB | Hingga 25 Gbps | 
| g4dn.8xlarge | 1 | 16 GiB | 32 | 128 GiB | 50 Gbps | 
| g4dn.12xlarge | 4 | 64 GiB | 48 | 192 GiB | 50 Gbps | 
| g4dn.16xlarge | 1 | 16 GiB | 64 | 256 GiB | 50 Gbps | 
| g5.xlarge | 1 | 24 GiB | 4 | 16 GiB | Hingga 10 Gbps | 
| g5.2xlarge | 1 | 24 GiB | 8 | 32 GiB | Hingga 10 Gbps | 
| g5.4xlarge | 1 | 24 GiB | 16 | 64 GiB | Hingga 25 Gbps | 
| g5.8xlarge | 1 | 24 GiB | 32 | 128 GiB | 25 Gbps | 
| g5.16xlarge | 1 | 24 GiB | 64 | 256 GiB | 25 Gbps | 
| g5.12xlarge | 4 | 96 GiB | 48 | 192 GiB | 40 Gbps | 
| g5.24xlarge | 4 | 96 GiB | 96 | 384 GiB | 50 Gbps | 
| g5.48xlarge | 8 | 192 GiB | 192 | 768 GiB | 100 Gbps | 
| g5g.xlarge | 1 | 16 GiB | 4 | 8 GiB | Hingga 10 Gbps | 
| g5g.2xlarge | 1 | 16 GiB | 8 | 16 GiB | Hingga 10 Gbps | 
| g5g.4xlarge | 1 | 16 GiB | 16 | 32 GiB | Hingga 10 Gbps | 
| g5g.8xlarge | 1 | 16 GiB | 32 | 64 GiB | 12 Gbps | 
| g5g.16xlarge | 2 | 32 GiB | 64 | 128 GiB | 25 Gbps | 
| g5g.metal | 2 | 32 GiB | 64 | 128 GiB | 25 Gbps | 
| g6.xbesar | 1 | 24 GiB | 4 | 16 GiB | Hingga 10 Gbps | 
| g6.2xbesar | 1 | 24 GiB | 8 | 32 GiB | Hingga 10 Gbps | 
| g6.4xbesar | 1 | 24 GiB | 16 | 64 GiB | Hingga 25 Gbps | 
| g6.8xbesar | 1 | 24 GiB | 32 | 128 GiB | 25 Gbps | 
| g6.16xbesar | 1 | 24 GiB | 64 | 256 GiB | 25 Gbps | 
| g6.12xbesar | 4 | 96 GiB | 48 | 192 GiB | 40 Gbps | 
| g6.24xbesar | 4 | 96 GiB | 96 | 384 GiB | 50 Gbps | 
| g6.48xbesar | 8 | 192 GiB | 192 | 768 GiB | 100 Gbps | 
| g6e.xlarge | 1 | 48 GiB | 4 | 32 GiB | Hingga 20 Gbps | 
| g6e.2xbesar | 1 | 48 GiB | 8 | 64 GiB | Hingga 20 Gbps | 
| g6e.4xbesar | 1 | 48 GiB | 16 | 128 GiB | 20 Gbps | 
| g6e.8xbesar | 1 | 48 GiB | 32 | 256 GiB | 25 Gbps | 
| g6e.16xbesar | 1 | 48 GiB | 64 | 512 GiB | 35 Gbps | 
| g6e.12xbesar | 4 | 192 GiB | 48 | 384 GiB | 100 Gbps | 
| g6e.24xbesar | 4 | 192 GiB | 96 | 768 GiB | 200 Gbps | 
| g6e.48xbesar | 8 | 384 GiB | 192 | 1536 GiB | 400 Gbps | 
| gr6.4xbesar | 1 | 24 GiB | 16 | 128 GiB | Hingga 25 Gbps | 
| gr6.8xbesar | 1 | 24 GiB | 32 | 256 GiB | 25 Gbps | 
| p2.xlarge | 1 | 12 GiB | 4 | 61 GiB | Tinggi | 
| p2.8xlarge | 8 | 96 GiB | 32 | 488 GiB | 10 Gbps | 
| p2.16xlarge | 16 | 192 GiB | 64 | 732 GiB | 20 Gbps | 
| p3.2xlarge | 1 | 16 GiB | 8 | 61 GiB | Hingga 10 Gbps | 
| p3.8xlarge | 4 | 64 GiB | 32 | 244 GiB | 10 Gbps | 
| p3.16xlarge | 8 | 128 GiB | 64 | 488 GiB | 25 Gbps | 
| p3dn.24xlarge | 8 | 256 GiB | 96 | 768 GiB | 100 Gbps | 
| p4d.24xlarge | 8 | 320 GiB | 96 | 1152 GiB | 400 Gbps | 
| p4de.24xlarge | 8 | 640 GiB | 96 | 1152 GiB | 400 Gbps | 
| p5.48xlarge | 8 | 640 GiB | 192 | 2 TiB | 3200 Gbps | 
| p5e.48xlarge | 8 | 1128 GiB | 192 | 2 TiB | 3200 Gbps | 
| p5en.48xbesar | 8 | 1128 GiB | 192 | 2 TiB | 3200 Gbps | 
| p6-b200.48xbesar | 8 | 1440 GiB | 192 | 2 TiB | 100 Gbps | 
| trn1.2xlarge | 1 | 32 GiB | 8 | 32 GiB | Hingga 12,5 Gbps | 
| trn1.32xlarge | 16 | 512 GiB | 128 | 512 GiB | 800 Gbps | 
| trn1n.32xlarge | 16  | 512 GiB | 128 | 512 GiB | 1600 Gbps | 
| trn2.48xbesar | 16 | 1.5 TIB | 192 | 2 TiB | 3,2 Tbps | 
| inf1.xlarge | 1 | 8 GiB | 4 | 8 GiB | Hingga 25 Gbps | 
| inf1.2xlarge | 1 | 8 GiB | 8 | 16 GiB | Hingga 25 Gbps | 
| inf1.6xlarge | 4 | 32 GiB | 24 | 48 GiB | 25 Gbps | 
| inf1.24xlarge | 16 | 128 GiB | 96 | 192 GiB | 100 Gbps | 
| inf2.xlarge | 1 | 32 GiB | 4 | 16 GiB | Hingga 15 Gbps | 
| inf2.8xlarge | 1 | 32 GiB | 32 | 128 GiB | Hingga 25 Gbps | 
| inf2.24xlarge | 6 | 192 GiB | 96 | 384 GiB | 50 Gbps | 
| inf2.48xlarge | 12 | 384 GiB | 192 | 768 GiB | 100 Gbps | 
| dl1.24xlarge | 8 | 256 GiB | 96 | 768 GiB | 400 Gbps | 
| dl2q.24xlarge | 8 | 128 GiB | 96 | 768 GiB | 100 Gbps | 

**catatan**  
Untuk pekerjaan GPU AWS Batch hanya mendukung jenis instance yang memiliki GPU NVIDIA. Misalnya, [`G4ad`](https://aws.amazon.com/ec2/instance-types/g4/#Amazon_EC2_G4ad_instances) keluarga tidak didukung untuk penjadwalan GPU. Anda masih dapat menggunakan [`G4ad`](https://aws.amazon.com/ec2/instance-types/g4/#Amazon_EC2_G4ad_instances) AWS Batch dengan hanya menentukan persyaratan vcpu dan memori dalam definisi pekerjaan, lalu mengakses GPU host secara langsung melalui penyesuaian di data pengguna template [ peluncuran Amazon EC2 ](launch-templates.md#lt-user-data) dengan AMI yang dioptimalkan komputasi Amazon ECS atau Amazon EKS, atau AMI khusus untuk menggunakan GPU AMD.  
Jenis instans yang menggunakan arsitektur ARM64 didukung untuk pekerjaan GPU pada AMI khusus yang disediakan untuk AWS Batch atau data pengguna Amazon EC2 untuk mengakses GPU dengan kode dan konfigurasi yang disesuaikan. Misalnya, keluarga [`G5g`](https://aws.amazon.com/ec2/instance-types/g5g/) contoh.

Parameter [resourceRequirements](job_definition_parameters.md#ContainerProperties-resourceRequirements) untuk ketentuan tugas menentukan jumlah GPU yang akan disematkan ke kontainer. Jumlah GPU ini tidak tersedia untuk pekerjaan lain yang berjalan pada instance tersebut selama durasi pekerjaan itu. Semua jenis instans dalam lingkungan komputasi yang menjalankan pekerjaan GPU harus berasal dari keluarga `g6` instans `p3``p4`,`p5`,`p6`,`g3`,`g3s`,`g4`,,`g5`,, atau. Jika hal ini tidak dilakukan, tugas GPU mungkin akan terjebak di status `RUNNABLE`.

Tugas yang tidak menggunakan GPU dapat dijalankan di instans GPU. Namun, mungkin diperlukan biaya lebih untuk menjalankannya di instans GPU daripada di instans non-GPU yang serupa. Tergantung pada vCPU, memori, dan waktu tertentu yang diperlukan, tugas non-GPU ini mungkin memblokir berjalannya tugas GPU.

**Topics**
+ [Buat GPU-based Kubernetes cluster di Amazon EKS](create-gpu-cluster-eks.md)
+ [Membuat definisi pekerjaan Amazon EKS GPU](create-eks-gpu-job-definition.md)
+ [Jalankan pekerjaan GPU di cluster Amazon EKS Anda](run-gpu-job-eks-cluster.md)