CMakeLists - updates and clean up (#46)

* CMakeLists - updates and clean up

* Update the vcn joeg spec table
Este commit está contenido en:
Aryan Salmanpour
2024-07-24 12:36:54 -04:00
cometido por GitHub
padre 10c5ccf9d4
commit 92d545f42b
Se han modificado 5 ficheros con 25 adiciones y 22 borrados
+11 -8
Ver fichero
@@ -251,7 +251,9 @@ RocJpegVappiDecoder::RocJpegVappiDecoder(int device_id) : device_id_{device_id},
{"gfx1032", {1, false, false}},
{"gfx1100", {1, false, false}},
{"gfx1101", {1, false, false}},
{"gfx1102", {1, false, false}}};
{"gfx1102", {1, false, false}},
{"gfx1200", {1, false, false}},
{"gfx1201", {1, false, false}}};
};
/**
@@ -315,13 +317,6 @@ RocJpegStatus RocJpegVappiDecoder::InitializeDecoder(std::string device_name, st
: gcn_arch_name_base_temp + "_mi300x";
}
auto it = vcn_jpeg_spec_.find(gcn_arch_name_base_temp);
if (it != vcn_jpeg_spec_.end()) {
current_vcn_jpeg_spec_ = it->second;
} else {
ERR("ERROR: didn't find the jpeg spec for " + gcn_arch_name_base_temp);
return ROCJPEG_STATUS_NOT_INITIALIZED;
}
std::vector<int> visible_devices;
GetVisibleDevices(visible_devices);
@@ -353,6 +348,14 @@ RocJpegStatus RocJpegVappiDecoder::InitializeDecoder(std::string device_name, st
CHECK_ROCJPEG(CreateDecoderConfig());
vaapi_mem_pool_->SetVaapiDisplay(va_display_);
auto it = vcn_jpeg_spec_.find(gcn_arch_name_base_temp);
if (it != vcn_jpeg_spec_.end()) {
current_vcn_jpeg_spec_ = it->second;
} else {
INFO("WARNING: didn't find the vcn jpeg spec for " + gcn_arch_name_base_temp + " using the default setting");
current_vcn_jpeg_spec_.num_jpeg_cores = 1;
}
vaapi_mem_pool_->SetPoolSize(current_vcn_jpeg_spec_.num_jpeg_cores * 2);
return ROCJPEG_STATUS_SUCCESS;