Loader support for SRAM ECC.

Change-Id: I0c6791c356d9186cc8dabae9fd698b1d4de19b09


[ROCm/ROCR-Runtime commit: 3c3db0243e]
This commit is contained in:
Sean Keely
2019-02-14 18:17:27 -06:00
rodzic f7dbaf103b
commit 8b90c223ac
8 zmienionych plików z 62 dodań i 35 usunięć
@@ -583,7 +583,7 @@ namespace code {
if (IsFinalizer && (EFlags & EF_AMDGPU_XNACK)) {
NewName = NewName + "+xnack";
} else {
if (EFlags != 0 && (EFlags & EF_AMDGPU_XNACK_LC)) {
if (EFlags & EF_AMDGPU_XNACK_LC) {
NewName = NewName + "+xnack";
} else {
if (OldName == "AMD:AMDGPU:8:0:1")
@@ -599,6 +599,9 @@ namespace code {
}
}
if (EFlags & EF_AMDGPU_SRAM_ECC_LC)
NewName += "+sram-ecc";
return NewName;
}
@@ -631,6 +634,9 @@ namespace code {
if (img->EFlags() & EF_AMDGPU_XNACK_LC)
isaName += "+xnack";
if (img->EFlags() & EF_AMDGPU_SRAM_ECC_LC)
isaName += "+sram-ecc";
return true;
} else {
std::string vendor_name, architecture_name;
@@ -108,7 +108,7 @@ bool IsAccessibleMemoryAddress(uint64_t address)
int32_t random_fd = 0;
ssize_t bytes_written = 0;
if (-1 == (random_fd = open("/dev/random", O_WRONLY))) {
return false;
return true; // Skip check if /dev/random is not available.
}
bytes_written = write(random_fd, (void*)address, 1);
if (-1 == close(random_fd)) {