forked from ROCm/HIPIFY
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ROCm#1271 from emankov/HIPIFY
[HIPIFY][tests][fix] Split the test `headers/headers_test_12_SOLVER.cu`
- Loading branch information
Showing
4 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args | ||
|
||
// Checks that HIP header file is included after include guard controlling macro, | ||
// which goes before #pragma once. | ||
// CHECK: #ifndef HEADERS_TEST_12_SOLVER_H | ||
// CHECK-NEXT: #include <hip/hip_runtime.h> | ||
#ifndef HEADERS_TEST_12_SOLVER_H | ||
// CHECK: #pragma once | ||
#pragma once | ||
// CHECK-NOT: #include <hip/hip_runtime.h> | ||
#define HEADERS_TEST_12_SOLVER_H | ||
#include <stdio.h> | ||
static int counter = 0; | ||
|
||
// CHECK: #include "hipsolver.h" | ||
// CHECK-NOT: #include "hipsolver.h" | ||
// CHECK-NOT: #include "cusolver_common.h" | ||
// CHECK-NOT: #include "cusolverDn.h" | ||
// CHECK-NOT: #include "cusolverRf.h" | ||
// CHECK-NOT: #include "cusolverMg.h" | ||
// CHECK-NOT: #include "cusolverSp.h" | ||
// CHECK-NOT: #include "cusolverSp_LOWLEVEL_PREVIEW.h" | ||
#include "cusolver_common.h" | ||
#include "cusolverDn.h" | ||
#include "cusolverRf.h" | ||
#include "cusolverMg.h" | ||
#include "cusolverSp.h" | ||
#include "cusolverSp_LOWLEVEL_PREVIEW.h" | ||
|
||
#endif // HEADERS_TEST_12_SOLVER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// RUN: %run_test hipify "%s" "%t" %hipify_args 1 --skip-excluded-preprocessor-conditional-blocks %clang_args | ||
|
||
#ifndef HEADERS_TEST_12_SOLVER_H | ||
// CHECK: #pragma once | ||
#pragma once | ||
#define HEADERS_TEST_12_SOLVER_H | ||
// CHECK: #include <hip/hip_runtime.h> | ||
// CHECK-NOT: #include <cuda_runtime.h> | ||
#include <cuda_runtime.h> | ||
static int counter = 0; | ||
|
||
// CHECK: #include "hipsolver.h" | ||
// CHECK-NOT: #include "hipsolver.h" | ||
// CHECK-NOT: #include "cusolver_common.h" | ||
// CHECK-NOT: #include "cusolverDn.h" | ||
// CHECK-NOT: #include "cusolverRf.h" | ||
// CHECK-NOT: #include "cusolverSp.h" | ||
// CHECK-NOT: #include "cusolverSp_LOWLEVEL_PREVIEW.h" | ||
#include "cusolver_common.h" | ||
#include "cusolverDn.h" | ||
#include "cusolverRf.h" | ||
#include "cusolverSp.h" | ||
#include "cusolverSp_LOWLEVEL_PREVIEW.h" | ||
#endif // HEADERS_TEST_12_SOLVER_H |