From 2f3f73a098a79d4edc7377a69ac6180fe08bfa3d Mon Sep 17 00:00:00 2001 From: Matthew Poremba Date: Thu, 20 Apr 2023 13:12:10 -0500 Subject: [PATCH] configs: Use higher dmesg level for GPUFS The dmesg level is currently set to 3 which will not display errors if the amdgpu driver fails to load. Changing to level 8 will show errors in the gem5 terminal and is not too spammy. This will help GPUFS developers with bug reports since we would actually be able to observe an error. Currently if the driver fails to load, there is no way to detect it and applications will attempt to run, usually failing on getting device properties. Change-Id: I56b9581c1a12a8ce329066d18d6a072d006c096d Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/69977 Tested-by: kokoro Reviewed-by: Matt Sinclair Maintainer: Matt Sinclair --- configs/example/gpufs/hip_cookbook.py | 2 +- configs/example/gpufs/hip_rodinia.py | 2 +- configs/example/gpufs/hip_samples.py | 2 +- configs/example/gpufs/vega10_kvm.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configs/example/gpufs/hip_cookbook.py b/configs/example/gpufs/hip_cookbook.py index 87c7547dd3..6a7bb428db 100644 --- a/configs/example/gpufs/hip_cookbook.py +++ b/configs/example/gpufs/hip_cookbook.py @@ -42,7 +42,7 @@ from ruby import Ruby cookbook_runscript = """\ export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH export HSA_ENABLE_INTERRUPT=0 -dmesg -n3 +dmesg -n8 dd if=/root/roms/vega10.rom of=/dev/mem bs=1k seek=768 count=128 if [ ! -f /lib/modules/`uname -r`/updates/dkms/amdgpu.ko ]; then echo "ERROR: Missing DKMS package for kernel `uname -r`. Exiting gem5." diff --git a/configs/example/gpufs/hip_rodinia.py b/configs/example/gpufs/hip_rodinia.py index 8ed951b55e..b8a7858fcd 100644 --- a/configs/example/gpufs/hip_rodinia.py +++ b/configs/example/gpufs/hip_rodinia.py @@ -43,7 +43,7 @@ from ruby import Ruby rodinia_runscript = """\ export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH export HSA_ENABLE_INTERRUPT=0 -dmesg -n3 +dmesg -n8 dd if=/root/roms/vega10.rom of=/dev/mem bs=1k seek=768 count=128 if [ ! -f /lib/modules/`uname -r`/updates/dkms/amdgpu.ko ]; then echo "ERROR: Missing DKMS package for kernel `uname -r`. Exiting gem5." diff --git a/configs/example/gpufs/hip_samples.py b/configs/example/gpufs/hip_samples.py index ccc1719639..9f83c2550e 100644 --- a/configs/example/gpufs/hip_samples.py +++ b/configs/example/gpufs/hip_samples.py @@ -42,7 +42,7 @@ from ruby import Ruby samples_runscript = """\ export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH export HSA_ENABLE_INTERRUPT=0 -dmesg -n3 +dmesg -n8 dd if=/root/roms/vega10.rom of=/dev/mem bs=1k seek=768 count=128 if [ ! -f /lib/modules/`uname -r`/updates/dkms/amdgpu.ko ]; then echo "ERROR: Missing DKMS package for kernel `uname -r`. Exiting gem5." diff --git a/configs/example/gpufs/vega10_kvm.py b/configs/example/gpufs/vega10_kvm.py index 54253bece5..9c7e4578f2 100644 --- a/configs/example/gpufs/vega10_kvm.py +++ b/configs/example/gpufs/vega10_kvm.py @@ -44,7 +44,7 @@ from ruby import Ruby demo_runscript = """\ export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH export HSA_ENABLE_INTERRUPT=0 -dmesg -n3 +dmesg -n8 dd if=/root/roms/vega10.rom of=/dev/mem bs=1k seek=768 count=128 if [ ! -f /lib/modules/`uname -r`/updates/dkms/amdgpu.ko ]; then echo "ERROR: Missing DKMS package for kernel `uname -r`. Exiting gem5."