Alex Cheema 7 months ago
parent
commit
90677415c7
1 changed files with 6 additions and 2 deletions
  1. 6 2
      .github/workflows/bench_job.yml

+ 6 - 2
.github/workflows/bench_job.yml

@@ -75,8 +75,12 @@ jobs:
           
           
           # Additional runtime optimizations
           # Additional runtime optimizations
           
           
-          # Set process scheduling
-          sudo taskpolicy -b PERFORMANCE
+          # Check if taskpolicy exists before using it
+          if command -v taskpolicy >/dev/null 2>&1; then
+            sudo taskpolicy -b PERFORMANCE
+          else
+            echo "taskpolicy command not available, skipping process scheduling optimization"
+          fi
           
           
           # Verify optimizations
           # Verify optimizations
           echo "Verifying performance settings..."
           echo "Verifying performance settings..."