SWDEV-1 - complex hiprtc negative tests

Change-Id: I22a200b1e762651689659a7a404b5f27f1ab01a7
Tento commit je obsažen v:
Ajay
2024-09-05 17:56:07 -07:00
odevzdal Rakesh Roy
rodič 359aed1348
revize c025def8ac
6 změnil soubory, kde provedl 29 přidání a 26 odebrání
+7 -1
Zobrazit soubor
@@ -83,7 +83,13 @@ template <int expected_errors_num> void ComplexTypeRTCWrapper(const char* progra
const char* options[] = {args.c_str()};
hiprtcResult result{hiprtcCompileProgram(program, 1, options)};
#else
hiprtcResult result{hiprtcCompileProgram(program, 0, nullptr)};
// read from CMakeLists.txt file add_definitions
std::string hip_path = HIP_PATH;
// nvcc errors if headers with relative paths are included
std::string opts_pre = "--pre-include="+ hip_path + "/include/hip/nvidia_detail/nvidia_hip_complex.h";
std::string opts_pos = "--include-path=/usr/local/cuda/include";
const char* options[] = {"-default-device" , opts_pre.c_str(), opts_pos.c_str()};
hiprtcResult result{hiprtcCompileProgram(program, 3, options)};
#endif
size_t log_size{};