Replies: 1 comment
-
|
That sounds like a useful extension. I would be happy to review a PR along those lines. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using nvfortran to write Fortran cuda kernels called from Fortran. Our group would like to use some these kernels in python code using pycuda. I have successfully done this by compiling and linking the Fortran code with the keep option, and then loading the cubin file. I think it would be useful if that feature could be included with the pycuda as an option using pycuda.compiler.SourceModule or equivalent.
Is this something that would be of interest?
Here is a minimal example of what I am currently doing:
Start with examples/hello_gpu.py, and change the mod = SourceModule line from
to
Write the cuda kernel in fortran with a dummy main program. The file name is multiply.f90
Compile the code to an executable keeping all the intermediate files
This creates a bunch of files including, for compute capability 7.5, pgcuda.75.cubin which I rename to kernel.cubin
Running
prints out the array of zeroes as in the original example.
Beta Was this translation helpful? Give feedback.
All reactions