Report library load errors in debug builds.
Change-Id: I24e63b15ad74fb86ecfe839f543800c2140c09d9
Ta zmiana jest zawarta w:
%! (template.HTML=
Sean Keely)złożyło 2017-12-05 18:49:33 -05:00
1 rodzic
d2e70bb999
złożenie
ca4c884306
3 plików zmienionych
+5
-4
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -53,7 +53,6 @@
|
||||
#define __lseek__ _lseek
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#include <dlfcn.h>
|
||||
#define __read__ read
|
||||
#define __lseek__ lseek
|
||||
#endif // _WIN32 || _WIN64
|
||||
@@ -473,10 +472,9 @@ hsa_status_t hsa_system_get_major_extension_table(uint16_t extension, uint16_t v
|
||||
|
||||
os::LibHandle lib = os::LoadLib(kAqlProfileLib);
|
||||
if (lib == NULL) {
|
||||
fprintf(stderr, "Loading '%s' error: %s\n", kAqlProfileLib, dlerror());
|
||||
debug_print("Loading '%s' failed\n", kAqlProfileLib);
|
||||
return HSA_STATUS_ERROR;
|
||||
}
|
||||
dlerror(); // Clear any existing error
|
||||
|
||||
hsa_ven_amd_aqlprofile_1_00_pfn_t ext_table;
|
||||
ext_table.hsa_ven_amd_aqlprofile_error_string =
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika