Code Samples

Find code samples for your data center projects.

GitHub*

67 Search Results

Building the GNU* Multiple Precision* library for Intel® Software Guard Extensions

How to adapt the GNU Multiple Precision Arithmetic Library (GMP) to work in Intel SGX enclaves.

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.

Code Sample: Panaconda - A Persistent Memory Version of the Game Snake

A persistent memory version of the game Snake that demonstrates features from the PMDK, including pools, pointers, and transactions.

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

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

The PMEM data structures used are defined in a header file called common.hpp

Find Your Leaked Persistent Memory Objects Using the Persistent Memory Development Kit (PMDK)

Describes the problem of memory leaks in persistent memory programming, then shows how to find and fix a memory leak in a simple C++ program using libpmemobj from the Persistent Memory Developers Kit.

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...

FFT Length and Layout Advisor

Multidimensional Fast Fourier Transform (FFT) - selecting optimal sizes and data layout

Accelerating your NVMe drive with SPDK

Accelerate Your NVMe Drives with SPDK

The Storage Performance Development Kit (SPDK) is an open source set of tools and libraries hosted on GitHub that helps you create high-performance and scalable storage applications. This tutorial focuses on the userspace NVMe driver provided by SPDK and illustrates a Hello World example.

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...

Improving Performance of Math Functions with Intel® Math Kernel Library

Introduction

Intel® Math Kernel Library1 (Intel® MKL) is a product that accelerates math processing routines to increase the performance of an application when running on systems equipped with Intel® processors. Intel MKL includes linear algebra...

An update to the integration of Intel® Media SDK and FFmpeg

Introduction

Intel® GPUs contain fixed function hardware to accelerate video encode, decode, and frame processing, which can now be used with a variety of interfaces.  Media SDK and Media Server Studio provide great performance with an API...

Pages