重要: このオプションはエンベデッド プロセッサ プラットフォームでは使用できません。
dmatest
コマンドを使用すると、ホスト マシンとカード上のグローバル メモリ間のデータ転送テストを実行し、カードのメモリ スループットを検証できます。dmatest
は、validate コマンドに含めます。
コマンド ライン形式は次のとおりです。
xbutil dmatest [-d card] [-b [0x]block_size_KB]
次の表に、使用可能なオプションを示します。
オプション | 説明 | 必須 |
---|---|---|
-d <card>
|
ターゲット カードを指定します。<card> は、card_id または Bus:Device:Function (BDF) のいずれかに指定できます。指定しない場合は、デフォルトの card_id = 0 になります。 注記:
xbutil scan コマンドを使用すると、インストールされたカードに対して card_id と BDF の両方が表示されます。 |
× |
-b blocksize
|
テスト ブロックのサイズを KB で指定します。-b オプションを指定しない場合、ブロック サイズのデフォルトは 65536 (KB) です。ブロック サイズは 2 のべき乗にする必要があります。 ブロック サイズは 10 進数でも、16 進数でも指定できます。たとえば、 |
× |
dmatest
を実行する前に xclbin
をプログラムする必要があります。xclbin
をプログラムする方法は、program を参照してください。
dmatest
コマンドは、カードにプログラムされている xclbin
でアクセス可能な DDR または HBM バンクに対してのみスループット テストを実行します。
次は DDR バンク 0、1、2、および 3 を使用して xclbin
を指定した U200 のコマンド出力の例です。
INFO: Found total 1 card(s), 1 are usable
Total DDR size: 65536 MB
Reporting from mem_topology:
Data Validity & DMA Test on bank0
Host -> PCIe -> FPGA write bandwidth = 11341.5 MB/s
Host <- PCIe <- FPGA read bandwidth = 11097.3 MB/s
Data Validity & DMA Test on bank1
Host -> PCIe -> FPGA write bandwidth = 11414.6 MB/s
Host <- PCIe <- FPGA read bandwidth = 10981.7 MB/s
Data Validity & DMA Test on bank2
Host -> PCIe -> FPGA write bandwidth = 11345.1 MB/s
Host <- PCIe <- FPGA read bandwidth = 11189.2 MB/s
Data Validity & DMA Test on bank3
Host -> PCIe -> FPGA write bandwidth = 11121.7 MB/s
Host <- PCIe <- FPGA read bandwidth = 11375.7 MB/s
INFO: xbutil dmatest succeeded.
次は、同様に、HBM ポート 0、1、2、および 3 を使用して xclbin
を指定した U50 のコマンド出力の例です。
INFO: Found total 1 card(s), 1 are usable
Total DDR size: 0 MB
Reporting from mem_topology:
Data Validity & DMA Test on HBM[0]
Buffer Size: 256 MB
Host -> PCIe -> FPGA write bandwidth = 11950.9 MB/s
Host <- PCIe <- FPGA read bandwidth = 11940.3 MB/s
Data Validity & DMA Test on HBM[1]
Buffer Size: 256 MB
Host -> PCIe -> FPGA write bandwidth = 11947 MB/s
Host <- PCIe <- FPGA read bandwidth = 11958.1 MB/s
Data Validity & DMA Test on HBM[2]
Buffer Size: 256 MB
Host -> PCIe -> FPGA write bandwidth = 12077.2 MB/s
Host <- PCIe <- FPGA read bandwidth = 12064.1 MB/s
Data Validity & DMA Test on HBM[3]
Buffer Size: 256 MB
Host -> PCIe -> FPGA write bandwidth = 11989.5 MB/s
Host <- PCIe <- FPGA read bandwidth = 11976 MB/s
INFO: xbutil dmatest succeeded.
xclbin
がプログラムされない場合、次のようなメッセージが表示されるようになります。
INFO: Found total 1 card(s), 1 are usable
'uuid' invalid, please re-program xclbin.