Talk:OpenCL

From BCCD 3.0

Jump to: navigation, search

Debian unstable/experimental installation

  1. Install Debian testing using [debian-testing-amd64-netinst.iso amd64 netinst ISO]
  2. Add unstable/experimental and jessie (for nvidia) to the bottom of /etc/apt/sources.list:
    deb http://ftp.debian.org/debian experimental main
    deb http://debian.osuosl.org/debian/ unstable main non-free
    deb-src http://debian.osuosl.org/debian/ unstable main
    
    deb http://security.debian.org/ stretch/updates main
    deb-src http://security.debian.org/ stretch/updates main
    
  3. apt-get update && aptitude full-upgrade
  4. Reboot
  5. apt-get install:
    • nvidia-opencl-icd
    • beignet-opencl-icd
    • libclc-dev
    • ocl-icd-libopencl1
    • ocl-icd-opencl-dev
  6. Test:
    1. wget -O - https://codeload.github.com/hpc12/tools/tar.gz/master | tar xvfz -
    2. pushd tools-master
    3. make
    4. ./print-devices: (ignore X server errors)
      platform 0: vendor 'Intel'
        device 0: 'Intel(R) HD Graphics Bay Trail-T'
      
    5. Demo it:
      ./cl-demo 1000000 10
      [0] Intel
      Enter choice: 0
      Choose device:
      [0] Intel(R) HD Graphics Bay Trail-T
      Enter choice: 0
      NAME: Intel(R) HD Graphics Bay Trail-T
      VENDOR: Intel
      PROFILE: FULL_PROFILE
      VERSION: OpenCL 1.2 beignet 1.0.2
      EXTENSIONS: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_icd
      DRIVER_VERSION: 1.0.2
      
      Type: GPU
      EXECUTION_CAPABILITIES: Kernel Native
      GLOBAL_MEM_CACHE_TYPE: Read-Write (2)
      CL_DEVICE_LOCAL_MEM_TYPE: Global (2)
      SINGLE_FP_CONFIG: 0x6
      QUEUE_PROPERTIES: 0x2
      
      VENDOR_ID: 3889
      MAX_COMPUTE_UNITS: 4
      MAX_WORK_ITEM_DIMENSIONS: 3
      MAX_WORK_GROUP_SIZE: 256
      PREFERRED_VECTOR_WIDTH_CHAR: 16
      PREFERRED_VECTOR_WIDTH_SHORT: 8
      PREFERRED_VECTOR_WIDTH_INT: 4
      PREFERRED_VECTOR_WIDTH_LONG: 2
      PREFERRED_VECTOR_WIDTH_FLOAT: 4
      PREFERRED_VECTOR_WIDTH_DOUBLE: 0
      MAX_CLOCK_FREQUENCY: 1000
      ADDRESS_BITS: 32
      MAX_MEM_ALLOC_SIZE: 1073741824
      IMAGE_SUPPORT: 1
      MAX_READ_IMAGE_ARGS: 128 
      MAX_WRITE_IMAGE_ARGS: 8  
      IMAGE2D_MAX_WIDTH: 8192  
      IMAGE2D_MAX_HEIGHT: 8192 
      IMAGE3D_MAX_WIDTH: 8192  
      IMAGE3D_MAX_HEIGHT: 8192 
      IMAGE3D_MAX_DEPTH: 2048  
      MAX_SAMPLERS: 16
      MAX_PARAMETER_SIZE: 1024 
      MEM_BASE_ADDR_ALIGN: 1024
      MIN_DATA_TYPE_ALIGN_SIZE: 128
      GLOBAL_MEM_CACHELINE_SIZE: 64
      GLOBAL_MEM_CACHE_SIZE: 8192
      GLOBAL_MEM_SIZE: 2147483648
      MAX_CONSTANT_BUFFER_SIZE: 134217728
      MAX_CONSTANT_ARGS: 8
      LOCAL_MEM_SIZE: 65536
      ERROR_CORRECTION_SUPPORT: 0
      PROFILING_TIMER_RESOLUTION: 80
      ENDIAN_LITTLE: 1
      AVAILABLE: 1
      COMPILER_AVAILABLE: 1
      MAX_WORK_GROUP_SIZES: 256 256 256
      ---------------------------------------------------------------------
      *** Kernel compilation resulted in non-empty log message.
      *** Set environment variable CL_HELPER_PRINT_COMPILER_OUTPUT=1 to see more.
      *** NOTE: this may include compiler warnings and other important messages
      ***   about your code.   
      *** Set CL_HELPER_NO_COMPILER_OUTPUT_NAG=1 to disable this message.
      0.003101 s
      3.869642 GB/s
      GOOD
      

BCCD v3.4.0 installation

  1. Add unstable/experimental to /etc/apt/sources.list:
    deb http://ftp.debian.org/debian experimental main
    deb http://debian.osuosl.org/debian/ unstable main non-free
    deb-src http://debian.osuosl.org/debian/ unstable main
    
    deb http://security.debian.org/ stretch/updates main
    deb-src http://security.debian.org/ stretch/updates main
    
  2. Set package pinning priorities in /etc/apt/preferences.d.
    1. In 10_wheezy:
      Package: *
      Pin: release o=wheezy
      Pin-Priority: 800
      
    2. In 100_bccd:
      Package: *
      Pin: release a=bccd-v340
      Pin-Priority: 900
      
    3. In 200_unstable:
      Package: *
      Pin: release a=unstable
      Pin-Priority: 700
      
      Package: *
      Pin: release a=experimental
      Pin-Priority: 600
      
  3. apt-get install:
    • beignet-opencl-icd
    • libclc-dev
    • ocl-icd-libopencl1
    • ocl-icd-opencl-dev
  4. apt-get upgrade ???
  5. Test like above
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox