SWDEV-340226 - hiprtcLinkAddData should allow empty name

Change-Id: I2c9a53453223ee4899b0a5d05e1097bc7e0e428e
Цей коміт міститься в:
Satyanvesh Dittakavi
2022-06-21 12:04:48 +00:00
зафіксовано Maneesh Gupta
джерело 21d7f35c84
коміт a39ab85e04
+2 -2
Переглянути файл
@@ -277,11 +277,11 @@ hiprtcResult hiprtcLinkAddData(hiprtcLinkState hip_link_state, hiprtcJITInputTyp
HIPRTC_INIT_API(hip_link_state, image, image_size, name, num_options, options_ptr,
option_values);
if (image == nullptr || image_size <= 0 || name == nullptr) {
if (image == nullptr || image_size <= 0) {
HIPRTC_RETURN(HIPRTC_ERROR_INVALID_INPUT);
}
if (input_type == HIPRTC_JIT_INPUT_CUBIN || input_type == HIPRTC_JIT_INPUT_PTX
if (input_type == HIPRTC_JIT_INPUT_CUBIN || input_type == HIPRTC_JIT_INPUT_PTX
|| input_type == HIPRTC_JIT_INPUT_FATBINARY || input_type == HIPRTC_JIT_INPUT_OBJECT
|| input_type == HIPRTC_JIT_INPUT_LIBRARY || input_type == HIPRTC_JIT_INPUT_NVVM) {
HIPRTC_RETURN(HIPRTC_ERROR_INVALID_INPUT);