AMD

Integer Sorting

Integer sorting application is used to sort 32-bit integer pairs, it can be run on both on-premises Alveo cards and in FPGA instances in the cloud. Its Maximum support is 1G 32-bit integer pairs.

Vendor: AMD

Last Update: October 21 , 2020

Size: 1.1 GB

Container Version: xilinx_sorting_u200_2020.1_v1.0

Deploy Free

This Product is free to deploy from AMD.


Use this product free and deploy the application below.


Deployment Options

This application is containerized and can be easily run in a few minutes in the cloud, or on-premises.

 

On Premises
Alveo U200
View & Buy Product
  • Xilinx Runtime: 2020.1
  • Target Platform: xilinx_u200_xdma_201830_2

Getting Started

Follow the instructions based on your deployment method.

Alveo U200

1.

Host Setup

The Xilinx Runtime (XRT) host application is supported on Ubuntu 16.04 /18.04 and CentOS 7.x.  A minimum of 64GB RAM is required to run this application successfully.

With sudo access, use the following command to download and run the setup script:


1.1 Clone GitHub Repository for Xilinx Base Runtime

    git clone https://github.com/Xilinx/Xilinx_Base_Runtime.git
cd Xilinx_Base_Runtime

1.2 Run the Host Setup Script

    ./host_setup.sh -v 2020.1 -p alveo-u200

Note: 

  • Please wait for the installation to complete.  During this time, you may need press [Y] to continue the host setup.
  • If you choose to flash the FPGA, you will need to cold reboot the local machine after the installation is completed to load the new image on the FPGA.
  • The script for host setup can be used to setup other versions XRT and shell. Please check https://github.com/Xilinx/Xilinx_Base_Runtime for more details.

 


2.

Install Docker (If not installed already)

With sudo access, use the following command to run the utility script to install docker.


2.1 Go to Xilinx_Base_Runtime utilities directory

    cd Xilinx_Base_Runtime/utilities

2.2 Pull the Docker Image

    ./docker_install.sh

3.

Application Execution

Enter the following commands in a terminal window to run the application:


3.1 Setup Environment Variables by script from Xilinx_Base_Runtime

    source Xilinx_Base_Runtime/utilities/xilinx_docker_setup.sh

3.2 Run the Docker Image

    docker pull xilinx/xilinx_sorting:u200_2020.1_v1.0

3.3 Run the Docker Image

    docker run -it $XILINX_DOCKER_DEVICES --shm-size=64G xilinx/xilinx_sorting:u200_2020.1_v1.0


Description of command arguments:

  • $XILINX_DOCKER_DEVICES - Variables set by the host setup script

3.4 Run Sorting Demo

    /opt/xilinx/apps/vt_database/sort/bin/vt_database_sort.exe --demo --accept-EULA


or generate new data and test

    /opt/xilinx/apps/vt_database/sort/bin/gendata.exe -ss 32 -out /home/nimbix/demo_data && /opt/xilinx/apps/vt_database/sort/bin/vt_database_sort.exe -i /home/nimbix/demo_data/input_32M_0.dat -o /home/nimbix/demo_data/output_32M_0.dat  --accept-EULA

4.

Results

When your job is complete, the application stores the output in the output directory (in demo mode, output directory is /home/nimbix/demo_data), and prints validate results.