AWS G and P Series EC2 Instances: Rendering, Gaming and Machine Learning
25 November 2024
Table of contents
Pricing
Who is the Target Audience?
Increase vCPU Service Quota for G Series Instances
- Go to the Service Quotas → Manage Quotas: ‘Amazon Elastic Compute Cloud’ → Search for ‘Running On-Demand G and VT instances’ → Request increase at account level.


Launch Instance with Proper Configurations:
- Launch instances → Provide proper name.
- Operating System: Here I am going to use Windows Server 2022 Base, because it is simple and easy to use.
- Select instance: g4dn.xlarge





Connecting to the EC2:
- Go to your instance → Connect to instnace → RDS Client → Get password.




Installing NVIDIA Drivers:
- NVIDIA GRID Drivers:
- Open PowerShell as Administrator.
- Copy and Paste Following Commands one by one to the PowerShell.
$Bucket = "ec2-windows-nvidia-drivers"
$KeyPrefix = "latest"
$LocalPath = "$home\Desktop\NVIDIA"
$Objects = Get-S3Object -BucketName $Bucket -KeyPrefix $KeyPrefix -Region us-east-1
foreach ($Object in $Objects) {$LocalFileName = $Object.Keyif ($LocalFileName -ne '' -and $Object.Size -ne 0) { $LocalFilePath = Join-Path $LocalPath $LocalFileName Copy-S3Object -BucketName $Bucket -Key $Object.Key -LocalFile $LocalFilePath -Region us-east-1}}




- NVIDIA Gaming Driver:
- Open PowerShell as Administartor.
- Run Following Commands one by one:
$Bucket = "nvidia-gaming"
$KeyPrefix = "windows/latest"
$LocalPath = "$home\Desktop\NVIDIA"
$Objects = Get-S3Object -BucketName $Bucket -KeyPrefix $KeyPrefix -Region us-east-1
foreach ($Object in $Objects) {$LocalFileName = $Object.Keyif ($LocalFileName -ne '' -and $Object.Size -ne 0) { $LocalFilePath = Join-Path $LocalPath $LocalFileName Copy-S3Object -BucketName $Bucket -Key $Object.Key -LocalFile $LocalFilePath -Region us-east-1}}
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\nvlddmkm\Global" -Name "vGamingMarketplace" -PropertyType "DWord" -Value "2"
reg add "HKLM\SYSTEM\CurrentControlSet\Services\nvlddmkm\Global" /v vGamingMarketplace /t REG_DWORD /d 2
Invoke-WebRequest -Uri "https://nvidia-gaming.s3.amazonaws.com/GridSwCert-Archive/GridSwCertWindows_2024_02_22.cert" -OutFile "$Env:PUBLIC\Documents\GridSwCert.txt"
nvidia-smi.exe -q
NICE DVC
- Go the https://download.nice-dcv.com/ and download NICE DCV Server.


my-dcv-server.com:8443#console
Enable Temporary Storage Drive:
- Right click on Windows icon and go to Disk Management, on the launch of Disk Management you will prompt with Initialize Disk option, where you can select GPT and ok.


- Download your prefered Blender version from https://www.blender.org/download/
- After Installing Blender open it, we need to made some changes in blender to use GPU.
- Go to the Edit → Preferences → System → Cycles Render Devices → Optix → Select Tesla T4 → save Preferences.




What About Gaming on Tesla T4?
What About Unreal Engine 5 on Tesla T4?
Machine Learning
Conclusion
Reference:
WRITTEN BY

Pruthvi Menpara
Pruthvi is a cloud computing architect who makes sure businesses scale and perform at their best using AWS and Azure. He’s passionate about building robust cloud infrastructures that provide the perfect balance of security and scalability.
WRITTEN BY
Pruthvi Menpara
Pruthvi is a cloud computing architect who makes sure businesses scale and perform at their best using AWS and Azure. He’s passionate about building robust cloud infrastructures that provide the perfect balance of security and scalability.
More
An interesting read? Here is more related to it.
12 August 2024
Pruthvi MenparaMaking IT Possible
Making IT Possible
Making IT Possible
Making IT Possible
Making IT Possible
Making IT Possible
India (HQ)
201, iSquare Corporate Park, Science City Road, Ahmedabad-380060, Gujarat, India
For Sales
[email protected]
Looking For Jobs
Apply Now