In the main script:
1- define 4 string variables (read them from input file).
2- pass them to kernel.
In the Kernel (3000 threads)
1- read the 4 string variables.
2- do some math operations (SQRT, EXP, …) on the global id and put the result in the X double variable.
3- Insert this double variable between Strings.
4- generate txt file and put the stings and X in it.
5- call NGSPICE ROUTINE (it is a simulation tool and can be called by SYSTEM).
6- NGSPICE will output a file.
7- we need to read this file to find a number that we will consider it our Kernel output.
8- We have to compare all kernel outputs and get the Lowest one.
9- print the lowest number to txt file.
My questions are:
- did you think this Algorithm will give me a good results?
- Is it possible to do all these steps in kernel?
- Since I did not find a lot examples for deal with Strings by OpenCL could you please give me any related resources or examples.
Aucun commentaire:
Enregistrer un commentaire