![Teledyne SP Devices ADQ7 Скачать руководство пользователя страница 11](http://html1.mh-extra.com/html/teledyne-sp-devices/adq7/adq7_user-manual_1081089011.webp)
Classification
Revision
Public
PA1
Document ID
Print date
19-2241
2019-05-02
Figure 5: Screen capture from the CUDA example.
5.2.1
Running the Example
1.
Make sure cuda toolkit including examples are installed
2.
Make sure your user is in the ‘adq’ group:
groups
3.
Make sure the ADQ7 device driver is loaded:
ls /dev/adq*
4.
Go to ADQ7_GPUDirect_example/source/gdrdrv
5.
Build kernel module for GPUDirect:
make
6.
Load kernel module:
sudo ./insmod.sh
7.
Go to directory ADQ7_GPUDirect_example/source
8.
Build example:
make
9.
Run example:
./cuda_example
Once the example is running press
h
for information about mouse and keyboard controls and
i
for
information.
5.2.2
Adjusting Example Settings
The file
gpu_streaming_defines.h
contains macros for settings and debug printouts. When two-channel
mode is active (
STREAM_CHANNELS = 2
) the channel used for generating graphics can be chosen by re-
ADQ7 GPU Peer-To-Peer – User Guide
Page 10 of 11