Get in Touch
AWS G and P Series EC2 Instances: Rendering, Gaming and Machine Learning
Written by Nishant Parmar
Published25 November 2024
Tech
Using AWS g4dn.xlarge EC2 Instance with Nvidia Tesla T4 GPU for High-Quality Rendering, Cloud Gaming and Machine Learning.
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:
More
An interesting read? Here is more related to it.
Permanently Blocking IP Addresses with AWS WAF Rate-Based Rule Limit
12 August 2024
/
Nishant Parmar
Tech
Web Development
How to Create Dynamic DNS in AWS Route 53 Using Python and the AWS SDK
13 September 2024
/
Nishant Parmar
Web Development
Tech
Nuxt 3 & Brotli Compression: A Deep Dive Into Hydration Mismatch Solutions
31 August 2023
/
Jay Bharadia
Tech
We Make pixel perfect things
We Make pixel perfect things
We Make pixel perfect things
We Make pixel perfect things
We Make pixel perfect things
We Make pixel perfect things
India (HQ)
201, iSquare Corporate Park, Science City Road, Ahmedabad-380060, Gujarat, India
For Sales
[email protected]
Looking For Jobs
Apply Now
LinkedIn
Instagram
X
Facebook
Youtube
Discord
Dribbble
Behance
Github