AWS : AMI : Deep Learning OSS Nvidia Driver AMI GPU PyTorch 2.3.0

I’m using this AWS instance type : Deep Learning OSS Nvidia Driver AMI GPU PyTorch 2.3.0
and trying to install these drivers “NVIDIA-Linux-x86_64-550.90.07.run” in Amazon Linux 2

WARNING: You do not appear to have an NVIDIA GPU supported by the 550.90.07 NVIDIA Linux graphics driver installed in this system.

There appears to already be a driver installed on your system (version: 535.183.01). As part of installing this driver (version: 550.90.07), the existing driver will be
uninstalled. Are you sure you want to continue? Y

The NVIDIA driver appears to have been installed previously using a different installer. To prevent potential conflicts, it is recommended either to update the existing
installation using the same mechanism by which it was originally installed, or to uninstall the existing installation before installing this driver.

Please review the message provided by the maintainer of this alternate installation method and decide how to proceed: Y

ERROR: An error occurred while performing the step: “Building kernel modules”. See /var/log/nvidia-installer.log for details.

vi /var/log/nvidia-installer.log

./arch/x86/include/asm/bug.h:36:22: error: expected identifier or ‘(’ before string constant
asm_inline volatile(“1:\t” ins “\n” \

./include/linux/rcupdate.h: In function ‘rcu_head_after_call_rcu’:
././include/linux/compiler_types.h:245:24: error: expected ‘(’ before ‘__inline’
define asm_inline asm __inline

The hardware reports this

uname -i
x86_64 x86_64 x86_64 GNU/Linux

sudo lshw -C display
*-display UNCLAIMED
description: VGA compatible controller
product: GD 5446
vendor: Cirrus Logic
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: vga_controller
configuration: latency=0

nvidia-smi
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Will the above hardware work with that driver?