About data_type of input

I want to give XML file as a input to jcuda program. so my question is what data format /data type is needed? like array? string?arraylist and etc?

Hello

The question is a bit vague. You can hardly process XML with CUDA. CUDA is intended for data parallel computations. The preferred data structure for GPU computations is a structure of arrays. So if you have XML data, then you will most likely have to extract the relevant data, and store it in arrays. There may be an overhead for this transformation, and you could carefully think about whether CUDA is the right tool for your task.

I wrote some general statements about this at Using Java with Nvidia GPU’s (cuda) - Stack Overflow

bye
Marco