diff --git a/rocclr/device/rocm/rocprogram.cpp b/rocclr/device/rocm/rocprogram.cpp index 44d34365c5..ef9156d798 100644 --- a/rocclr/device/rocm/rocprogram.cpp +++ b/rocclr/device/rocm/rocprogram.cpp @@ -287,10 +287,6 @@ bool HSAILProgram::setKernels(amd::option::Options* options, void* binary, size_ return false; } - if (amd::IS_HIP) { - defineUndefinedVars(); - } - // Load the code object. status = hsa_code_object_reader_create_from_memory(data, secSize, &hsaCodeObjectReader_); if (status != HSA_STATUS_SUCCESS) { @@ -496,10 +492,6 @@ bool LightningProgram::setKernels(amd::option::Options* options, void* binary, s return false; } - if (amd::IS_HIP) { - defineUndefinedVars(); - } - // Load the code object. status = hsa_code_object_reader_create_from_memory(binary, binSize, &hsaCodeObjectReader_); if (status != HSA_STATUS_SUCCESS) {