Re: [PyCUDA] How do I make a multichannel 1D texture?
On Dienstag 12 Januar 2010, Dan Piponi wrote: I'm having trouble figuring out how to make a 4 channel 1D texture for use with tex1D. I can easily make a 2D 4 channel texture, from an MxNx4 numpy 3D array, using make_multichannel_2d_array and bind_array_to_texref. The third axis of the array has size 4 and becomes the 4 channels in a float4 texture. Works fine with tex2D. But I can't find a sequence of calls that takes an Nx4 numpy 2D array, with size 4 in the second axis, and turns it into a 4 channel 1D texture suitable for use with tex1D. I can't find something corresponding to make_multichannel_1d_array. So starting with an Nx4 2D numpy array, what sequence of calls do I need to make to get 1D texture with float4 elements? Do you really want tex1D and not tex1Dfetch? If the latter, http://is.gd/6kv0P Andreas signature.asc Description: This is a digitally signed message part. ___ PyCUDA mailing list PyCUDA@tiker.net http://tiker.net/mailman/listinfo/pycuda_tiker.net
Re: [PyCUDA] How do I make a multichannel 1D texture?
Andreas, On Fri, Jan 15, 2010 at 10:58 AM, Andreas Klöckner li...@informa.tiker.net wrote: On Dienstag 12 Januar 2010, Dan Piponi wrote: I'm having trouble figuring out how to make a 4 channel 1D texture for use with tex1D. Do you really want tex1D and not tex1Dfetch? Yes. I have tex1Dfetch working fine but I believe you have to use tex1D for interpolation -- Dan ___ PyCUDA mailing list PyCUDA@tiker.net http://tiker.net/mailman/listinfo/pycuda_tiker.net
[PyCUDA] How do I make a multichannel 1D texture?
I'm having trouble figuring out how to make a 4 channel 1D texture for use with tex1D. I can easily make a 2D 4 channel texture, from an MxNx4 numpy 3D array, using make_multichannel_2d_array and bind_array_to_texref. The third axis of the array has size 4 and becomes the 4 channels in a float4 texture. Works fine with tex2D. But I can't find a sequence of calls that takes an Nx4 numpy 2D array, with size 4 in the second axis, and turns it into a 4 channel 1D texture suitable for use with tex1D. I can't find something corresponding to make_multichannel_1d_array. So starting with an Nx4 2D numpy array, what sequence of calls do I need to make to get 1D texture with float4 elements? -- Dan ___ PyCUDA mailing list PyCUDA@tiker.net http://tiker.net/mailman/listinfo/pycuda_tiker.net