Code Samples

Find code samples for your data center projects.

GitHub*

26 Search Results

Code Sample: Optimizing Binarized Neural Networks on Intel® Xeon® Scalable Processors

In the previous article, we discussed the performance and accuracy of Binarized Neural Networks (BNN). We also introduced a BNN coded from scratch in the Wolfram Language. The key component of this neural network is Matrix Multiplication.

Training an Agent to Play Pong* Using neon™ Framework

This article showcases the implementation of an agent to play the game Pong* using an Intel® architecture-optimized neon™ framework, and to serve as an introduction to the Policy Gradients algorithm.

Code Sample: Exploring MPI for Python* on Intel® Xeon Phi™ Processor

Published on December 15, 2016, updated April 4, 2018By Nguyen, Loc Q

Learn how to write an MPI program in Python*, and take advantage of Intel® multicore architectures using OpenMP threads and Intel® AVX512 instructions.

Recipe: Building and Running MILC on Intel® Xeon® Processors and Intel® Xeon Phi™ Processors

MILC software represents a set of codes written by the MIMD Lattice Computation collaboration used to study quantum chromodynamics. This article provides instructions for code access, build and run directions for the “ks_imp_rhmc” application on Intel® Xeon® Gold and Intel® Xeon Phi™ processors for...

Using Intel® Math Kernel Library Compiler Assisted Offload in Intel® Xeon Phi™ Processor

Introduction

Beside native execution, another usage model of using the Intel® Math Kernel Library (Intel® MKL) on an Intel® Xeon Phi™ processor is the compiler assisted offload (CAO). The CAO usage model allows users to offload Intel MKL...

Using Intel® MPI Library on Intel® Xeon Phi™ Product Family

This document is designed to help users get started writing code and running MPI applications using the Intel® MPI Library on a development platform that includes the Intel® Xeon Phi™ processor.

Performance of Classic Matrix Multiplication Algorithm on Intel® Xeon Phi™ Processor System

Published on April 14, 2017

Matrix multiplication (MM) of two matrices is one of the most fundamental operations in linear algebra. The algorithm for MM is very simple, it could be easily implemented in any programming language. This paper shows that performance significantly improves when different optimization techniques...

How to use the MPI-3 Shared Memory in Intel® Xeon Phi™ Processors

Code Sample included: Learn how to use MPI-3 shared memory feature using the corresponding APIs on the Intel® Xeon Phi™ processor.

BigDL – Scale-out Deep Learning on Apache Spark* Cluster

Published on March 28, 2017By Sunny G.

Learn how to install and use BigDL for training and testing some of the commonly used deep neural network models on Apache Spark.

Resetting the lowest n set bits

Already a couple of years ago, the Bit Manipulation Instruction Set 1 (BMI1) introduced the instruction BLSR, which resets the lowest bit that is set. (The corresponding intrinsic _blsr_u32/64 wraps this instruction with some nice C/C++ function...

SR-IOV and OVS-DPDK NFV use case hands-on labs figure 1

Single Root I/O Virtualization and Open vSwitch* Hands-On Lab Tutorials

This tutorial supports two hands-on labs delivered during the IEEE NFV/SDN conference in 2016. It includes comprehensive code samples and instructions to configure a single root I/O virtualization (SR-IOV) cluster and an NFV use case for Open vSwitch* with Data Plane Development Kit.

OVS-DPDK with Neutron on OpenStack configured with DevStack

Configure Open vSwitch* with the Data Plane Development Kit in DevStack

Published on December 27, 2016By James C.

This tutorial describes how to set up a demonstration or test cluster for Open vSwitch* (OvS) and Data Plane Development Kit (DPDK) to run together on OpenStack*, using DevStack* as the deployment tool and the Neutron ML2/GRE Tunnel plugin.

Pages