Allow hsa_status_string when HSA is closed.

API is a stateless lookup of RO data and needed to interpret
hsa_init error codes.

Change-Id: If80cba2f697843d08e529da0f790acf3c37127a7


[ROCm/ROCR-Runtime commit: 22de0e7fb9]
Этот коммит содержится в:
Sean Keely
2019-05-20 17:48:47 -05:00
родитель b9c2754101
Коммит b754622b33
-1
Просмотреть файл
@@ -2573,7 +2573,6 @@ hsa_status_t hsa_executable_iterate_program_symbols(
hsa_status_t hsa_status_string(
hsa_status_t status,
const char **status_string) {
IS_OPEN();
IS_BAD_PTR(status_string);
const size_t status_u = static_cast<size_t>(status);
switch (status_u) {