| View previous topic :: View next topic |
| Author |
Message |
tthh
Joined: 13 Oct 2004 Posts: 4
|
Posted: Wed Apr 28, 2010 10:56 pm Post subject: Calling C programs from Fortran global/device code? |
|
|
Someone may have already the same question, but I cannot find any in this forum.
Please give a simple example.
Thanks in advance.
Takao |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Apr 29, 2010 9:38 am Post subject: |
|
|
Hi Takao,
There isn't a linker for device code, hence there is no way to associate external symbols between objects. Currently, calling external procedures from device code is not possible.
However, CUDA C and CUDA Fortan can share device data provided that a pointer to the device data is passed via the host. For an example of this, please see my PGInsider article Tuning a Monte Carlo Algorithm on GPUs.
Hope this helps,
Mat |
|
| Back to top |
|
 |
tthh
Joined: 13 Oct 2004 Posts: 4
|
Posted: Thu Apr 29, 2010 10:48 am Post subject: thanks |
|
|
Mat,
thanks a lot for quick reply! The article helps a lot, too.
Takao |
|
| Back to top |
|
 |
|