Skip to content

Commit

Permalink
Merge pull request #391 from ROCm-Developer-Tools/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][tests] Synthetic test for CUDA Runtime API typedefs
  • Loading branch information
emankov authored Aug 28, 2021
2 parents 581ae0b + 98dfdef commit bbc73f7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/unit_tests/synthetic/runtime_typedefs.cu
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// RUN: %run_test hipify "%s" "%t" %hipify_args -D__CUDA_API_VERSION_INTERNAL %clang_args

// CHECK: #include <hip/hip_runtime.h>
#include <cuda_runtime_api.h>

int main() {
printf("07. CUDA Runtime API Typedefs synthetic test\n");

// CHECK: hipHostFn_t HostFn_t;
// CHECK-NEXT: hipStreamCallback_t StreamCallback_t;
// CHECK-NEXT: hipSurfaceObject_t SurfaceObject_t;
// CHECK-NEXT: hipTextureObject_t TextureObject_t;
cudaHostFn_t HostFn_t;
cudaStreamCallback_t StreamCallback_t;
cudaSurfaceObject_t SurfaceObject_t;
cudaTextureObject_t TextureObject_t;

return 0;
}

0 comments on commit bbc73f7

Please sign in to comment.