Forgive my mis-statement. I'm a bit rusty. :)

David
On Aug 10, 2012 9:50 AM, "Apostolis Glenis" <[email protected]> wrote:

> You can definetely call a _device_ funtion from a __global__ function.
> If I rememer correctly the way to do this in pycuda is to have the device
> function in the same "pycuda kernel" as the global one.
> Then you can treate the __global__ function as any other __global__
> function
>
> 2012/8/10 David Mertens <[email protected]>
>
>> On Fri, Aug 10, 2012 at 6:59 AM, madhur amilkanthwar
>> <[email protected]> wrote:
>> > Hello,
>> > I'm newbie to PyCUDA. I need to call function declared with __device__
>> from
>> > function declared with __global__.
>> > How to achieve in pyCUDA?
>>
>> Is this even possible in CUDA? I thought that __device__ functions
>> could only be called from other __device__ functions. Now, it may be
>> possible to call a __global__ function from a __device__ function
>> (it's been a little while since I looked), but not the other way
>> around.
>>
>> David
>>
>> >
>> > --
>> > Thank You.
>> > Madhur D. Amilkanthwar
>> > RISE lab,
>> > IIT Madras.
>> >
>> >
>> > _______________________________________________
>> > PyCUDA mailing list
>> > [email protected]
>> > http://lists.tiker.net/listinfo/pycuda
>> >
>>
>>
>>
>> --
>>  "Debugging is twice as hard as writing the code in the first place.
>>   Therefore, if you write the code as cleverly as possible, you are,
>>   by definition, not smart enough to debug it." -- Brian Kernighan
>>
>> _______________________________________________
>> PyCUDA mailing list
>> [email protected]
>> http://lists.tiker.net/listinfo/pycuda
>>
>
>
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to