EasyManua.ls Logo

NXP Semiconductors Layerscape LS1028A BSP - Page 130

NXP Semiconductors Layerscape LS1028A BSP
136 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1. Boot up the kernel. The messages appear as follows:
...
Galcore version 6.2.4.163672
...
You will see GPU device filename as follows:
root@localhost:~# ll /dev/galcore
crw------- 1 root root 199, 0 Jan 28 2018 /dev/galcore
2. All the test cases are located under the /opt directory:
root@localhost:/opt# ls /opt
cl11 es20 tiger vdk
a. OpenCL demo
Below is FFT as example:
root@ localhost: cd /opt/cl11/fft
root@localhost:/opt/cl11/fft# ./fft 128
Block size: 16
Print result: yes
Initializing device(s)...
Get the Device info and select Device...
# of Devices Available = 1
# of Compute Units = 1
# compute units = 1
Creating Command Queue...
log2(fft size) = log2(128)=7
Compiling radix-2 FFT Program for GPU...
creating radix-2 kernels...
Creating kernel fft_radix2 0 (p=1)...
Creating kernel fft_radix2 1 (p=2)...
Creating kernel fft_radix2 2 (p=4)...
Creating kernel fft_radix2 3 (p=8)...
Creating kernel fft_radix2 4 (p=16)...
Creating kernel fft_radix2 5 (p=32)...
Creating kernel fft_radix2 6 (p=64)...
Setting kernel args for kernel 0 (p=1)...
Setting kernel args for kernel 1 (p=2)...
Setting kernel args for kernel 2 (p=4)...
Setting kernel args for kernel 3 (p=8)...
Setting kernel args for kernel 4 (p=16)...
Setting kernel args for kernel 5 (p=32)...
Setting kernel args for kernel 6 (p=64)...
running kernel 0 (p=1)...
running kernel 1 (p=2)...
running kernel 2 (p=4)...
running kernel 3 (p=8)...
running kernel 4 (p=16)...
running kernel 5 (p=32)...
running kernel 6 (p=64)...
Kernel execution time on GPU (kernel 0) : 0.000342 seconds
Kernel execution time on GPU (kernel 1) : 0.000215 seconds
Linux kernel
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
130
NXP Semiconductors

Table of Contents

Related product manuals