Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions src/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,21 +234,7 @@ static bool sanity_check_npu_stack(bool quiet, bool json_output = false) {
}
return false;
}
int major, minor;
sscanf(u_name.release, "%d.%d", &major, &minor);
bool kernel_ok = (major > 6) || (major == 6 && minor >= 17);
validation_json["kernel"] = u_name.release;
validation_json["kernel_ok"] = kernel_ok;
if (!kernel_ok) {
if (print_human) {
header_print_r("ERROR", "Kernel version incompatible with this version of FLM. Please update your kernel!");
}
validation_json["ready"] = false;
if (json_output) {
std::cout << validation_json.dump(4) << std::endl;
}
return false;
}
if (print_human) {
header_print("Linux", "Kernel: " << u_name.release);
}
Expand All @@ -258,6 +244,7 @@ static bool sanity_check_npu_stack(bool quiet, bool json_output = false) {
bool enough_cols = true;
bool amd_device_found = false;
bool drm_version_ok = true;
bool kernel_ok = true;

for (int i = 0; i < 16; ++i) {
std::string dev_name = "/dev/accel/accel" + std::to_string(i);
Expand Down
Loading