Debian Codegraph @

primus_vk_diag.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 export VK_LOADER_DEBUG=warn,error,info
4 export LD_DEBUG=libs
5 export ENABLE_PRIMUS_LAYER=0
6
7 function step_0scip-shell shell shell-project 0.0.0 step_0(). {
8 printfscip-shell system . . printf. "===== Round 0: Vulkaninfo =====\n"
9 if whichscip-shell system . . which. vulkaninfo >> /dev/nullscip-shell filesystem . . `/dev/null`.; then
10 printfscip-shell system . . printf. "==== Without Optirun ====\n"
11 vulkaninfo 2>&1
12 printfscip-shell system . . printf. "==== With Optirun ====\n"
13 optirun vulkaninfo 2>&1
14 else
15 printfscip-shell system . . printf. "ERROR: Vulkaninfo is missing. Please install for more diagnostic data\n"
16 fi
17 }
18 function step_1scip-shell shell shell-project 0.0.0 step_1(). {
19 printfscip-shell system . . printf. "===== Round 1: Plain Vulkan =====\n"
20 ./primus_vk_diag vulkan 2>&1
21 }
22 function step_2scip-shell shell shell-project 0.0.0 step_2(). {
23 printfscip-shell system . . printf. "===== Round 2: Vulkan with optirun =====\n"
24 optirun ./primus_vk_diag vulkan 2>&1
25 }
26 function step_3scip-shell shell shell-project 0.0.0 step_3(). {
27 printfscip-shell system . . printf. "===== Round 3: Vulkan with optirun and Primus layer =====\n"
28 ENABLE_PRIMUS_LAYER=1 optirun ./primus_vk_diag vulkan 2>&1
29 }
30 function step_4scip-shell shell shell-project 0.0.0 step_4(). {
31 printfscip-shell system . . printf. "===== Round 4: Mixed Vulkan and OpenGL with Primus layer =====\n"
32 ENABLE_PRIMUS_LAYER=1 optirun ./primus_vk_diag vulkan gl vulkan 2>&1
33 }
34 function step_5scip-shell shell shell-project 0.0.0 step_5(). {
35 printfscip-shell system . . printf. "===== Round 5: Mixed Vulkan and OpenGL with Primus layer while forcing primus-libGLa =====\n"
36 ENABLE_PRIMUS_LAYER=1 optirun env PRIMUS_libGLa=/usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.0scip-shell filesystem . . `/usr/lib/x86_64-linux-gnu/nvidia/current/libGLX_nvidia.so.0`. ./primus_vk_diag vulkan gl vulkan 2>&1
37 }
38
39 if [[ $# == 0 ]]; then
40 step_0scip-shell shell shell-project 0.0.0 step_0().
41 step_1scip-shell shell shell-project 0.0.0 step_1().
42 step_2scip-shell shell shell-project 0.0.0 step_2().
43 step_3scip-shell shell shell-project 0.0.0 step_3().
44 step_4scip-shell shell shell-project 0.0.0 step_4().
45 step_5scip-shell shell shell-project 0.0.0 step_5().
46 else
47 for arg in "$@"; do
48 if [[ $arg == [0-5] ]]; then
49 step_$arg
50 else
51 printfscip-shell system . . printf. "Invalid argument\n" >&2
52 fi
53 done
54 fi