Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ GetMsanShadowMemory(ur_context_handle_t Context, ur_device_handle_t Device,
}

ur_result_t MsanShadowMemoryCPU::Setup() {
if (ShadowBegin != 0)
return UR_RESULT_SUCCESS;

bool Initialized = true;
for (unsigned i = 0; i < kMemoryLayoutSize; ++i) {
uptr Start = kMemoryLayout[i].start;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ std::shared_ptr<ShadowMemory> GetShadowMemory(ur_context_handle_t Context,
}

ur_result_t ShadowMemoryCPU::Setup() {
if (ShadowBegin != 0)
return UR_RESULT_SUCCESS;

bool Initialized;

ShadowBegin = 0x100000000000ULL;
Expand Down
Loading