SWDEV-1 - complex hiprtc negative tests

Change-Id: I22a200b1e762651689659a7a404b5f27f1ab01a7


[ROCm/hip-tests commit: c025def8ac]
This commit is contained in:
Ajay
2024-09-05 17:56:07 -07:00
zatwierdzone przez Rakesh Roy
rodzic 0976bd0249
commit ae11292a4b
6 zmienionych plików z 29 dodań i 26 usunięć
@@ -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{};