Skip to content

Commit 8c7d1d5

Browse files
committed
logging to try to get insight into CI issue
Signed-off-by: Chris Perkins <[email protected]>
1 parent a6ef7e0 commit 8c7d1d5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sycl/test-e2e/IntermediateLib/multi_lib_app.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ using namespace sycl::ext::oneapi::experimental;
4242
void *loadOsLibrary(const std::string &LibraryPath) {
4343
HMODULE h =
4444
LoadLibraryExA(LibraryPath.c_str(), NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
45+
if (!h) {
46+
std::cout << "LoadLibraryExA(" << LibraryPath
47+
<< ") failed with error code " << GetLastError() << std::endl;
48+
}
4549
return (void *)h;
4650
}
4751
int unloadOsLibrary(void *Library) {
@@ -113,6 +117,10 @@ int main() {
113117

114118
void *lib_a = loadOsLibrary(path_to_lib_a);
115119
void *f = getOsLibraryFuncAddress(lib_a, "performIncrementation");
120+
if(!f){
121+
std::cout << "Cannot get performIncremenation function from .so/.dll" << std::endl;
122+
return 1;
123+
}
116124
auto performIncrementationFuncA = reinterpret_cast<IncFuncT *>(f);
117125
performIncrementationFuncA(q, buf); // call the function from lib_a
118126
q.wait();

0 commit comments

Comments
 (0)