[Chapel Merge] Use types properly in cuBLAS wrapper header

Branch: refs/heads/master
Revision: 3506c86
Author: e-kayrakli
Log Message:

Merge pull request #17774 from e-kayrakli/cublas-interop-fix

Use types properly in cuBLAS wrapper header

This PR fixes the cuBLAS wrapper header issues that were exposed by the
LLVM-as-default effort.

There were two issues with it:

  • It was using things like complex double without #include <complex.h>
  • It was using c_void_ptr

I believe both were working fine because this file was compiled alongside the
generated C code.

This PR adds the necessary #includes to the header, uses cublasHandle_t
instead of c_void_ptr, and adjusts the tests compopts file.

With the PR, the test passes on a machine with GPU.

[Not reviewed; test change on a test that already fails]

Modified Files:
M test/gpu/interop/cuBLAS/c_cublas.h

M test/gpu/interop/cuBLAS/level1/test_cublas1.compopts

Compare: https://github.com/chapel-lang/chapel/compare/a5f5b5e9d560...3506c86b27c4