We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af0a842 commit ee1eff6Copy full SHA for ee1eff6
1 file changed
init/eessi_archdetect.sh
@@ -219,7 +219,11 @@ accelpath() {
219
amd-smi static --asic | grep TARGET_GRAPHICS_VERSION 2>&1 > $amd_smi_out
220
if [[ $? -eq 0 ]]; then
221
amd_smi_info=$(head -n 1 $amd_smi_out)
222
- log "DEBUG" "accelpath: '${amd_smi_info}' derived from amd-smi output"
+ amdgcn_cc=$(echo $amd_smi_info | sed 's/.*: //')
223
+ log "DEBUG" "accelpath: AMDGCN compute capability '${amdgcn_cc}' derived from amd-smi output '${amd_smi_info}'"
224
+ res="accel/amd/${amdgcn_cc}"
225
+ echo $res
226
+ rm -f $amd_smi_out
227
else
228
log "DEBUG" "accelpath: ami-smi command failed, see output in $amd_smi_out"
229
exit 3
0 commit comments