Re: Passing a float from the Core to the Host: error!
Posted:
Sun Sep 03, 2017 8:26 pm
by claudio4parallella
Well, after lot of attempts, it seems to me impossible to work with Input Output of float from Core to Host and viceversa.
I cannot find a way to send from HOST to CORE a float or double value and receive back from CORE to HOST the result as float or double.
The /epiphany-examples/apps/dotproduct is calculating c[i]=a[i]*b[i] as integer. Nothing to do if a, b, c are float.
FIRST ATTEMPT: maibox
When using "mailnbox" to transfer via buffer the values Host->Core it's impossible to have a float number because impossible to have something like atof().
Back Core->Host using "mailbox" and buffer it's possible because host is giving atof();
SECOND ATTEMPT: core memory
Using core memory it's ok Core->Host using pointers (core) and e_read (host).
Back from Host->Core it's impossible to me to have a float or double on the core side.
I cannot believe that Parallella - Epiphany cannot manage data transfer that involve float or not integer values.
Anybody could help my ignorance about to do it please?
Thanks a lot in advance
Re: Passing a float from the Core to the Host: error!
Posted:
Tue Sep 05, 2017 7:59 pm
by claudio4parallella
ok! it works!
Using core memory ok Float core->host and host->core
Using shared memory ok Float from core->host, not opposite because missing atof(buffer).
So it almost works.