YARN-9061. Improve the GPU/FPGA module log message of container-executor. (Zhankun Tang via wangda)

Change-Id: Iece9b47438357077a53984a820d4d6423f480518
This commit is contained in:
Wangda Tan 2018-11-28 14:31:31 -08:00
parent 579ef4be06
commit 9ed87567ad
2 changed files with 6 additions and 4 deletions

View File

@ -141,7 +141,7 @@ void reload_fpga_configuration() {
/*
* Format of FPGA request commandline:
*
* c-e fpga --excluded_fpgas 0,1,3 --container_id container_x_y
* c-e --module-fpga --excluded_fpgas 0,1,3 --container_id container_x_y
*/
int handle_fpga_request(update_cgroups_parameters_function func,
const char* module_name, int module_argc, char** module_argv) {
@ -213,7 +213,8 @@ int handle_fpga_request(update_cgroups_parameters_function func,
if (!minor_devices) {
// Minor devices is null, skip following call.
fprintf(ERRORFILE, "is not specified, skip cgroups call.\n");
fprintf(ERRORFILE,
"--excluded-fpgas is not specified, skip cgroups call.\n");
goto cleanup;
}

View File

@ -141,7 +141,7 @@ void reload_gpu_configuration() {
/*
* Format of GPU request commandline:
*
* c-e gpu --excluded_gpus 0,1,3 --container_id container_x_y
* c-e --module-gpu --excluded_gpus 0,1,3 --container_id container_x_y
*/
int handle_gpu_request(update_cgroups_parameters_func func,
const char* module_name, int module_argc, char** module_argv) {
@ -213,7 +213,8 @@ int handle_gpu_request(update_cgroups_parameters_func func,
if (!minor_devices) {
// Minor devices is null, skip following call.
fprintf(ERRORFILE, "is not specified, skip cgroups call.\n");
fprintf(ERRORFILE,
"--excluded_gpus is not specified, skip cgroups call.\n");
goto cleanup;
}