for(int j=0;j<L;j++)
{
mulKernel<<<blocksMul, threadsMul>>>(devTemp, devInputs, devWeights, j*N*I, I);
sumKernel<<<blocksSum, threadsSum>>>(devInputs, devTemp, N);
}
nvcc -lrt main_cuda.cu -o nnlv2_cuda
If you'd like to control the phone from another computer, plug in a USB cord to it
and configure your usb0 device (from Linux) as follows:
# sudo ifconfig usb0 10.100.0.2 up
Ubuntu users may have to run this several times before it takes effect.
Now you can ssh into the phone as follows:
# ssh root@10.100.0.2
The password is "wing".
robotex@robotex-laptop ~ $ sudo ifconfig usb0 10.100.0.2 up
robotex@robotex-laptop ~ $ ping 10.100.0.2
PING 10.100.0.2 (10.100.0.2) 56(84) bytes of data.
64 bytes from 10.100.0.2: icmp_req=1 ttl=64 time=0.100 ms
64 bytes from 10.100.0.2: icmp_req=2 ttl=64 time=0.063 ms
^C
--- 10.100.0.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.063/0.081/0.100/0.020 ms
robotex@robotex-laptop ~ $ ssh -l root 10.100.0.2
ssh: connect to host 10.100.0.2 port 22: Connection refused
robotex@robotex-laptop ~ $ ssh root@10.100.0.2
ssh: connect to host 10.100.0.2 port 22: Connection refused