SWDEV-452864 - disable Unit_hiprtc_stdheaders test
Signed-off-by: Sebastian Luzynski <Sebastian.Luzynski@amd.com> Change-Id: Iee312683dcd83104f330214d4246bef08517000f
This commit is contained in:
@@ -125,8 +125,6 @@
|
||||
"Unit_Device___uhadd_Sanity_Positive",
|
||||
"Unit_Device___rhadd_Sanity_Positive",
|
||||
"Unit_Device___urhadd_Sanity_Positive",
|
||||
"=== Patch which removes the typetraits implementation from std namespace in hiprtc is reverted ===",
|
||||
"Unit_hiprtc_stdheaders",
|
||||
"Unit_hipGraphAddMemcpyNode_Negative_Parameters",
|
||||
"=== Below 2 tests are disable due to defect EXSWHTEC-369 ===",
|
||||
"Unit_Device_ilogbf_Accuracy_Positive",
|
||||
|
||||
@@ -218,8 +218,6 @@
|
||||
"Unit_Layered2DTexture_Check_DeviceBufferToFromLayered2DArray - float4",
|
||||
"=== Below test is disabled due to defect EXSWHTEC-347 ===",
|
||||
"Unit_hipPointerSetAttribute_Positive_SyncMemops",
|
||||
"=== Patch which removes the typetraits implementation from std namespace in hiprtc is reverted ===",
|
||||
"Unit_hiprtc_stdheaders",
|
||||
"NOTE: The following test is disabled due to defect - EXSWHTEC-241",
|
||||
"Unit_hipFuncGetAttributes_Negative_Parameters",
|
||||
"NOTE: The following test is disabled due to defect - EXSWHTEC-242",
|
||||
|
||||
@@ -20,9 +20,17 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This test verifies hiprtc compilation when the C++ std headers such as type_traits,
|
||||
// iterator etc. are included in the program. HIPRTC also defines few std templates
|
||||
// and this should not cause conflicts with std headers.
|
||||
/**
|
||||
* @addtogroup hiprtc_std_headers hiprtc_std_headers
|
||||
* @{
|
||||
* @ingroup hiprtcHeadersTest
|
||||
* `hiprtcResult hiprtcCompileProgram(hiprtcProgram prog,
|
||||
* int numOptions,
|
||||
* const char** options);` -
|
||||
* This test verifies hiprtc compilation when the C++ std headers such as type_traits,
|
||||
* iterator etc. are included in the program. HIPRTC also defines few std templates
|
||||
* and this should not cause conflicts with std headers.
|
||||
*/
|
||||
|
||||
#include <hip_test_common.hh>
|
||||
#include <hip/hiprtc.h>
|
||||
@@ -56,7 +64,22 @@ template <typename T> __global__ void stdheader(T a, bool* passed) {
|
||||
#endif
|
||||
)"};
|
||||
|
||||
/**
|
||||
* Test Description
|
||||
* ------------------------
|
||||
* - Executes `hiprtcCompileProgram` with additional C++ std
|
||||
* headers used in kernel source
|
||||
* Test source
|
||||
* ------------------------
|
||||
* - unit/rtc/stdheaders.cc
|
||||
* Test requirements
|
||||
* ------------------------
|
||||
* - ROCM_VERSION >= 7.0
|
||||
*/
|
||||
TEST_CASE("Unit_hiprtc_stdheaders") {
|
||||
HipTest::HIP_SKIP_TEST("Test disabled due to incorrect ROCm version");
|
||||
return;
|
||||
|
||||
using namespace std;
|
||||
hiprtcProgram prog;
|
||||
HIPRTC_CHECK(hiprtcCreateProgram(&prog, source, "stdheader.cu", 0, nullptr, nullptr));
|
||||
@@ -118,3 +141,8 @@ TEST_CASE("Unit_hiprtc_stdheaders") {
|
||||
HIPRTC_CHECK(hiprtcDestroyProgram(&prog));
|
||||
REQUIRE(*hResult == true);
|
||||
}
|
||||
|
||||
/**
|
||||
* End doxygen group hiprtc_std_headers.
|
||||
* @}
|
||||
*/
|
||||
|
||||
مرجع در شماره جدید
Block a user