<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="generator" content="pdf2htmlEX">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css">
<link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css">
<link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/6286a7b7b305d84a4f7a9bec/raw.css">
<script src="https://static.pudn.com/base/js/compatibility.min.js"></script>
<script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script>
<script>
try{
pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});
}catch(e){}
</script>
<title></title>
</head>
<body>
<div id="sidebar" style="display: none">
<div id="outline">
</div>
</div>
<div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6286a7b7b305d84a4f7a9bec/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">Altera SDK for OpenCL</div><div class="t m0 x2 h3 y2 ff1 fs1 fc0 sc0 ls0 ws0">Cyclone V SoC Getting Started Guide</div><div class="t m0 x3 h4 y3 ff1 fs2 fc1 sc0 ls0 ws0">Subscribe</div><div class="t m0 x3 h4 y4 ff1 fs2 fc1 sc0 ls0 ws0">Send Feedback</div><div class="t m0 x4 h5 y5 ff2 fs2 fc0 sc0 ls0 ws0">OCL006-15.0.0</div><div class="t m0 x5 h6 y6 ff3 fs2 fc0 sc0 ls0 ws0">2015.05.04</div><div class="t m0 x6 h7 y7 ff4 fs3 fc2 sc0 ls0 ws0">101 Innovation Drive</div><div class="t m0 x6 h7 y8 ff4 fs3 fc2 sc0 ls0 ws0">San Jose, CA 95134</div><div class="t m0 x6 h7 y9 ff4 fs3 fc1 sc0 ls0 ws0">www.altera.com</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div>
</body>
</html>
<div id="pf2" class="pf w0 h0" data-page-no="2"><div class="pc pc2 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6286a7b7b305d84a4f7a9bec/bg2.jpg"><div class="t m0 x7 h8 ya ff1 fs4 fc0 sc0 ls0 ws0">Contents</div><div class="t m0 x8 h9 yb ff5 fs5 fc0 sc0 ls0 ws0">Altera SDK for OpenCL Cyclone V SoC Getting Started Guide........................<span class="_ _0"></span>1-1</div><div class="t m0 x9 ha yc ff4 fs6 fc0 sc0 ls0 ws0">Prerequisites..................................................................................................................................................1-2</div><div class="t m0 x9 ha yd ff4 fs6 fc0 sc0 ls0 ws0">Contents of the Altera SDK for OpenCL..................................................................................................<span class="_ _0"></span>1-2</div><div class="t m0 x9 ha ye ff4 fs6 fc0 sc0 ls0 ws0">Overview of the AOCL and Cyclone V SoC Development Kit Setup Processes.................................1-4</div><div class="t m0 x9 ha yf ff4 fs6 fc0 sc0 ls0 ws0">Cyclone V SoC Development Kit Reference Platform Board Variants................................................<span class="_ _1"></span>1-5</div><div class="t m0 x9 ha y10 ff4 fs6 fc0 sc0 ls0 ws0">Design Considerations................................................................................................................................<span class="_ _2"></span>1-6</div><div class="t m0 x8 h9 y11 ff5 fs5 fc0 sc0 ls0 ws0">Setting Up the Altera SDK for OpenCL, SoC EDS, and the Cyclone V SoC</div><div class="t m0 xa h9 y12 ff5 fs5 fc0 sc0 ls0 ws0">Development Kit for Windows.......................................................................<span class="_ _3"> </span>2-1</div><div class="t m0 x9 ha y13 ff4 fs6 fc0 sc0 ls0 ws0">Upgrading to Current Version of AOCL for Cyclone V SoC................................................................<span class="_ _1"></span>2-2</div><div class="t m0 x9 ha y14 ff4 fs6 fc0 sc0 ls0 ws0">Downloading the Altera SDK for OpenCL..............................................................................................<span class="_ _4"> </span>2-2</div><div class="t m0 x9 ha y15 ff4 fs6 fc0 sc0 ls0 ws0">Downloading the SoC EDS.........................................................................................................................<span class="_ _1"></span>2-3</div><div class="t m0 x9 ha y16 ff4 fs6 fc0 sc0 ls0 ws0">Installing the Altera SDK for OpenCL......................................................................................................<span class="_ _0"></span>2-3</div><div class="t m0 x9 ha y17 ff4 fs6 fc0 sc0 ls0 ws0">Setting the Environment Variables for Windows...................................................................................<span class="_ _4"> </span>2-4</div><div class="t m0 x9 ha y18 ff4 fs6 fc0 sc0 ls0 ws0">Installing the SoC EDS ...............................................................................................................................<span class="_ _2"></span>2-5</div><div class="t m0 x9 ha y19 ff4 fs6 fc0 sc0 ls0 ws0">Licensing the Software.................................................................................................................................2-5</div><div class="t m0 x9 ha y1a ff4 fs6 fc0 sc0 ls0 ws0">Installing the Cyclone V SoC Development Kit......................................................................................<span class="_ _2"> </span>2-6</div><div class="t m0 xb ha y1b ff4 fs6 fc0 sc0 ls0 ws0">Writing an SD Card Image onto the Micro SD Flash Card on Windows................................2-6</div><div class="t m0 xb ha y1c ff4 fs6 fc0 sc0 ls0 ws0">Configuring the SW3 Switches.......................................................................................................2-7</div><div class="t m0 xb ha y1d ff4 fs6 fc0 sc0 ls0 ws0">Setting Up Terminal Connection in Windows............................................................................<span class="_ _0"></span>2-8</div><div class="t m0 xb ha y1e ff4 fs6 fc0 sc0 ls0 ws0">Setting Environment Variables and Loading OpenCL Linux Kernel Driver..........................<span class="_ _2"></span>2-8</div><div class="t m0 xb ha y1f ff4 fs6 fc0 sc0 ls0 ws0">Connecting the Board to Network via Ethernet..........................................................................<span class="_ _5"></span>2-9</div><div class="t m0 x9 ha y20 ff4 fs6 fc0 sc0 ls0 ws0">Creating the Hardware Configuration File of an OpenCL Kernel for SoC.......................................<span class="_ _5"></span>2-10</div><div class="t m0 x9 ha y21 ff4 fs6 fc0 sc0 ls0 ws0">Executing an OpenCL Kernel on an SoC...............................................................................................<span class="_ _2"> </span>2-12</div><div class="t m0 xb ha y22 ff4 fs6 fc0 sc0 ls0 ws0">Building the Host Application.....................................................................................................<span class="_ _2"> </span>2-13</div><div class="t m0 xb ha y23 ff4 fs6 fc0 sc0 ls0 ws0">Running the Host Application.....................................................................................................<span class="_ _0"></span>2-13</div><div class="t m0 xb ha y24 ff4 fs6 fc0 sc0 ls0 ws0">Output from Successful Kernel Execution on the Cyclone V SoC Development Kit..........<span class="_ _5"></span>2-13</div><div class="t m0 x9 ha y25 ff4 fs6 fc0 sc0 ls0 ws0">Uninstalling the Software.........................................................................................................................<span class="_"> </span>2-14</div><div class="t m0 x8 h9 y26 ff5 fs5 fc0 sc0 ls0 ws0">Setting Up the Altera SDK for OpenCL, SoC EDS, and the Cyclone V SoC</div><div class="t m0 xa h9 y27 ff5 fs5 fc0 sc0 ls0 ws0">Development Kit for Linux.............................................................................<span class="_ _3"> </span>3-1</div><div class="t m0 x9 ha y28 ff4 fs6 fc0 sc0 ls0 ws0">Upgrading to Current Version of AOCL for Cyclone V SoC................................................................<span class="_ _1"></span>3-2</div><div class="t m0 x9 ha y29 ff4 fs6 fc0 sc0 ls0 ws0">Downloading the Altera SDK for OpenCL..............................................................................................<span class="_ _4"> </span>3-2</div><div class="t m0 x9 ha y2a ff4 fs6 fc0 sc0 ls0 ws0">Downloading the SoC EDS.........................................................................................................................<span class="_ _1"></span>3-3</div><div class="t m0 x9 ha y2b ff4 fs6 fc0 sc0 ls0 ws0">Installing the Altera SDK for OpenCL......................................................................................................<span class="_ _0"></span>3-3</div><div class="t m0 x9 ha y2c ff4 fs6 fc0 sc0 ls0 ws0">Setting the Environment Variables for Linux..........................................................................................<span class="_ _5"></span>3-4</div><div class="t m0 x9 ha y2d ff4 fs6 fc0 sc0 ls0 ws0">Installing the SoC EDS................................................................................................................................<span class="_ _2"></span>3-5</div><div class="t m0 x9 ha y2e ff4 fs6 fc0 sc0 ls0 ws0">Licensing the Software.................................................................................................................................3-5</div><div class="t m0 x9 ha y2f ff4 fs6 fc0 sc0 ls0 ws0">Installing the Cyclone V SoC Development Kit......................................................................................<span class="_ _2"> </span>3-6</div><div class="t m0 xb ha y30 ff4 fs6 fc0 sc0 ls0 ws0">Writing an SD Card Image onto the Micro SD Flash Card on Linux......................................<span class="_ _5"></span>3-7</div><div class="t m0 xc h4 y31 ff1 fs2 fc0 sc0 ls0 ws0">TOC-2</div><div class="t m0 xd h4 y32 ff1 fs2 fc0 sc0 ls0 ws0">Altera SDK for OpenCL Cyclone V SoC Getting Started Guide</div><div class="t m0 xe h4 y33 ff1 fs2 fc0 sc0 ls0 ws0">Altera Corporation</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div>
<div id="pf3" class="pf w0 h0" data-page-no="3"><div class="pc pc3 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6286a7b7b305d84a4f7a9bec/bg3.jpg"><div class="t m0 xb ha y34 ff4 fs6 fc0 sc0 ls0 ws0">Configuring the SW3 Switches.......................................................................................................3-7</div><div class="t m0 xb ha y35 ff4 fs6 fc0 sc0 ls0 ws0">Setting Up Terminal Connection in Linux...................................................................................3-8</div><div class="t m0 xb ha y36 ff4 fs6 fc0 sc0 ls0 ws0">Setting Environment Variables and Loading OpenCL Linux Kernel Driver..........................<span class="_ _5"></span>3-9</div><div class="t m0 xb ha y37 ff4 fs6 fc0 sc0 ls0 ws0">Connecting the Board to Network via Ethernet..........................................................................<span class="_ _5"></span>3-9</div><div class="t m0 x9 ha y38 ff4 fs6 fc0 sc0 ls0 ws0">Creating the Hardware Configuration File of an OpenCL Kernel for SoC.......................................<span class="_ _5"></span>3-11</div><div class="t m0 x9 ha y39 ff4 fs6 fc0 sc0 ls0 ws0">Executing an OpenCL Kernel on an SoC...............................................................................................<span class="_ _2"> </span>3-13</div><div class="t m0 xb ha y3a ff4 fs6 fc0 sc0 ls0 ws0">Building the Host Application.....................................................................................................<span class="_ _2"> </span>3-14</div><div class="t m0 xb ha y3b ff4 fs6 fc0 sc0 ls0 ws0">Running the Host Application.....................................................................................................<span class="_ _0"></span>3-14</div><div class="t m0 xb ha y3c ff4 fs6 fc0 sc0 ls0 ws0">Output from Successful Kernel Execution on the Cyclone V SoC Development Kit..........<span class="_ _5"></span>3-14</div><div class="t m0 x9 ha y3d ff4 fs6 fc0 sc0 ls0 ws0">Uninstalling the Software.........................................................................................................................<span class="_"> </span>3-15</div><div class="t m0 x8 h9 y3e ff5 fs5 fc0 sc0 ls0 ws0">Document Revision History...............................................................................<span class="_ _5"></span>A-1</div><div class="t m0 xf h4 y32 ff1 fs2 fc0 sc0 ls0 ws0">Altera SDK for OpenCL Cyclone V SoC Getting Started Guide</div><div class="t m0 x10 h4 y3f ff1 fs2 fc0 sc0 ls0 ws0">TOC-3</div><div class="t m0 x11 h4 y40 ff1 fs2 fc0 sc0 ls0 ws0">Altera Corporation</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div>
<div id="pf4" class="pf w0 h0" data-page-no="4"><div class="pc pc4 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6286a7b7b305d84a4f7a9bec/bg4.jpg"><div class="t m0 x12 hb y41 ff1 fs7 fc0 sc0 ls0 ws0">Altera SDK for OpenCL Cyclone V SoC Getting</div><div class="t m0 x13 hb y42 ff1 fs7 fc0 sc0 ls0 ws0">Started Guide</div><div class="t m0 x14 hc y43 ff1 fs8 fc0 sc0 ls0 ws0">1</div><div class="t m0 x15 hd y44 ff3 fs9 fc1 sc0 ls0 ws0">2015.05.04</div><div class="t m0 x16 h5 y45 ff2 fs2 fc1 sc0 ls0 ws0">OCL006-15.0.0</div><div class="t m0 x17 h4 y46 ff1 fs2 fc1 sc0 ls0 ws0">Subscribe</div><div class="t m0 x18 h4 y47 ff1 fs2 fc1 sc0 ls0 ws0">Send Feedback</div><div class="t m0 x8 he y48 ff4 fs6 fc0 sc0 ls0 ws0">The <span class="ff6">Altera SDK for OpenCL Cyclone V SoC Getting Started Guide</span> describes the procedures you follow to</div><div class="t m0 x8 ha y49 ff4 fs6 fc0 sc0 ls0 ws0">set up and use the Altera</div><div class="t m0 x19 hf y4a ff7 fsa fc0 sc0 ls0 ws0">®</div><div class="t m0 x1a ha y49 ff4 fs6 fc0 sc0 ls0 ws0"> Software Development Kit (SDK) for OpenCL</div><div class="t m0 x1b hf y4a ff7 fsa fc0 sc0 ls0 ws0">™</div><div class="t m0 x1c h10 y4b ff4 fsb fc0 sc0 ls0 ws0">(1)</div><div class="t m0 x1d ha y4c ff4 fs6 fc0 sc0 ls0 ws0"> (AOCL)</div><div class="t m0 x1e h10 y4b ff4 fsb fc0 sc0 ls0 ws0">(2)</div><div class="t m0 x1f ha y4c ff4 fs6 fc0 sc0 ls0 ws0"> to run an OpenCL</div><div class="t m0 x8 ha y4d ff4 fs6 fc0 sc0 ls0 ws0">application on the Altera Cyclone</div><div class="t m0 x20 hf y4e ff7 fsa fc0 sc0 ls0 ws0">®</div><div class="t m0 x21 ha y4d ff4 fs6 fc0 sc0 ls0 ws0"> V SoC Development Kit.</div><div class="t m0 x8 ha y4f ff4 fs6 fc0 sc0 ls0 ws0">OpenCL is a C-based open standard for the programming of heterogeneous parallel devices. The AOCL</div><div class="t m0 x8 ha y50 ff4 fs6 fc0 sc0 ls0 ws0">provides a compiler and tools for you to build and run OpenCL applications that target Altera FPGAs.</div><div class="t m0 x8 ha y51 ff4 fs6 fc0 sc0 ls0 ws0">The AOCL supports the embedded profile of the OpenCL Specification version 1.0. For more information</div><div class="t m0 x8 he y52 ff4 fs6 fc0 sc0 ls0 ws0">on the OpenCL Specification version 1.0, refer to the OpenCL Reference Pages. The <span class="ff6">OpenCL Specification</span></div><div class="t m0 x8 he y53 ff6 fs6 fc0 sc0 ls0 ws0">version 1.0<span class="ff4"> includes detailed information on the OpenCL application programming interface (API) and</span></div><div class="t m0 x8 ha y54 ff4 fs6 fc0 sc0 ls0 ws0">programming language.</div><div class="t m0 x8 ha y55 ff4 fs6 fc0 sc0 ls0 ws0">This document assumes the following:</div><div class="t m0 x8 h11 y56 ff5 fs6 fc0 sc0 ls0 ws0">1.<span class="_ _6"> </span><span class="ff4">You are knowledgeable in OpenCL concepts and application programming interfaces (APIs), as</span></div><div class="t m0 xa he y57 ff4 fs6 fc0 sc0 ls0 ws0">described in the <span class="ff6">OpenCL Specification version 1.0</span> by the Khronos Group.</div><div class="t m0 x8 h11 y58 ff5 fs6 fc0 sc0 ls0 ws0">2.<span class="_ _6"> </span><span class="ff4">You have experience in creating OpenCL applications, and are familiar with the contents of the</span></div><div class="t m0 xa ha y59 ff4 fs6 fc0 sc0 ls0 ws0">OpenCL Specification.</div><div class="t m0 x8 h11 y5a ff5 fs6 fc0 sc0 ls0 ws0">3.<span class="_ _6"> </span><span class="ff4">You are familiar with the information available in the following AOCL documentation:</span></div><div class="t m0 xa he y5b ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span><span class="ff6">Altera SDK for OpenCL Getting Started Guide</span>.</div><div class="t m0 xa he y5c ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span><span class="ff6">Altera SDK for OpenCL Programming Guide</span>.</div><div class="t m0 xa he y5d ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span><span class="ff6">Altera SDK for OpenCL Best Practices Guide</span>.</div><div class="t m0 x8 h12 y5e ff5 fsc fc0 sc0 ls0 ws0">Related Information</div><div class="t m0 x8 h11 y5f ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span><span class="ff5 fc1">OpenCL Reference Pages</span></div><div class="t m0 x8 h11 y60 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span><span class="ff5 fc1">OpenCL Specification version 1.0</span></div><div class="t m0 x8 h11 y61 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span><span class="ff5 fc1">Altera RTE for OpenCL Getting Started Guide</span></div><div class="t m0 x8 h11 y62 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span><span class="ff5 fc1">Altera SDK for OpenCL Getting Started Guide</span></div><div class="t m0 x8 h11 y63 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span><span class="ff5 fc1">Altera SDK for OpenCL Programming Guide</span></div><div class="t m0 x8 h11 y64 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span><span class="ff5 fc1">Altera SDK for OpenCL Best Practices Guide</span></div><div class="t m0 x22 h10 y65 ff4 fsb fc0 sc0 ls0 ws0">(1)</div><div class="t m0 x23 ha y66 ff4 fs6 fc0 sc0 ls0 ws0">OpenCL and the OpenCL logo are trademarks of Apple Inc. used by permission of the Khronos Group</div><div class="t m0 x24 hf y67 ff7 fsa fc0 sc0 ls0 ws0">™</div><div class="t m0 x25 ha y66 ff4 fs6 fc0 sc0 ls0 ws0">.</div><div class="t m0 x22 h10 y68 ff4 fsb fc0 sc0 ls0 ws0">(2)</div><div class="t m0 x23 ha y69 ff4 fs6 fc0 sc0 ls0 ws0">The Altera SDK for OpenCL is based on a published Khronos Specification, and has passed the Khronos</div><div class="t m0 x23 h11 y6a ff4 fs6 fc0 sc0 ls0 ws0">Conformance Testing Process. Current conformance status can be found at <span class="ff5 fc1">www.khronos.org/</span></div><div class="t m0 x23 h11 y6b ff5 fs6 fc1 sc0 ls0 ws0">conformance<span class="ff4 fc0">.</span></div><div class="t m0 x26 h13 y6c ff8 fsd fc0 sc0 ls0 ws0">©</div><div class="t m0 x27 h14 y6d ff3 fsb fc0 sc0 ls0 ws1"> 2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are</div><div class="t m0 x26 h14 y6e ff3 fsb fc0 sc0 ls0 ws2">trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as</div><div class="t m0 x26 h14 y6f ff3 fsb fc0 sc0 ls0 ws3">trademarks or service marks are the property of their respective holders as described at<span class="fc1"> <span class="ws0">www.altera.com/common/legal.html</span></span>. Altera warrants performance</div><div class="t m0 x26 h14 y70 ff3 fsb fc0 sc0 ls0 ws4">of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any</div><div class="t m0 x26 h14 y71 ff3 fsb fc0 sc0 ls0 ws5">products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information,</div><div class="t m0 x26 h14 y72 ff3 fsb fc0 sc0 ls0 ws6">product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device</div><div class="t m0 x26 h14 y73 ff3 fsb fc0 sc0 ls0 ws0">specifications before relying on any published information and before placing orders for products or services.</div><div class="t m0 x28 h10 y74 ff2 fsb fc1 sc0 ls0 ws0">ISO</div><div class="t m0 x29 h10 y75 ff2 fsb fc1 sc0 ls0 ws0">9001:2008</div><div class="t m0 x29 h10 y76 ff2 fsb fc1 sc0 ls0 ws0">Registered</div><div class="c xe y77 w2 h15"><div class="t m0 x2a h16 y78 ff5 fse fc1 sc0 ls0 ws0"><span class="fc3 sc0">w</span><span class="fc3 sc0">w</span><span class="fc3 sc0">w</span><span class="_ _8"></span><span class="fc3 sc0">.al</span><span class="fc3 sc0">t</span><span class="fc3 sc0">e</span><span class="fc3 sc0">r</span><span class="fc3 sc0">a.c</span><span class="fc3 sc0">o</span><span class="fc3 sc0">m</span></div><div class="t m0 x2b h17 y79 ff3 fsf fc2 sc0 ls0 ws0">101 Innovation Drive, San Jose, CA 95134</div></div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div>
<div id="pf5" class="pf w0 h0" data-page-no="5"><div class="pc pc5 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/6286a7b7b305d84a4f7a9bec/bg5.jpg"><div class="t m0 x7 h3 y7a ff1 fs1 fc0 sc0 ls0 ws0">Prerequisites</div><div class="t m0 x8 ha y7b ff4 fs6 fc0 sc0 ls0 ws0">To install the Altera SDK for OpenCL (AOCL) and create an OpenCL application for the Cyclone V SoC</div><div class="t m0 x8 ha y7c ff4 fs6 fc0 sc0 ls0 ws0">Development Kit, your system must meet certain hardware, target platform, and software requirements.</div><div class="t m0 x2c h18 y7d ff1 fs6 fc0 sc0 ls0 ws0">Hardware Requirements</div><div class="t m0 x8 ha y7e ff4 fs6 fc0 sc0 ls0 ws0">Ensure that your system meets the following minimum hardware and operating system (OS) require‐</div><div class="t m0 x8 ha yd ff4 fs6 fc0 sc0 ls0 ws0">ments:</div><div class="t m0 x8 h11 y7f ff5 fs6 fc0 sc0 ls0 ws0">1.<span class="_ _6"> </span><span class="ff4">The accelerator board is the Altera Cyclone V SoC Development Kit.</span></div><div class="t m0 x8 h11 y80 ff5 fs6 fc0 sc0 ls0 ws0">2.<span class="_ _6"> </span><span class="ff4">Development system requirements:</span></div><div class="t m0 xa ha y81 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>You must have administrator privileges on the development system to install the necessary</div><div class="t m0 x2d ha y82 ff4 fs6 fc0 sc0 ls0 ws0">packages and drivers.</div><div class="t m0 xa ha y83 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>The development system has at least 8 gigabytes (GB) of RAM.</div><div class="t m0 xa ha y84 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>The development system must be running on one of the following supported target platforms:</div><div class="t m0 x2d ha y85 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>Microsoft 64-bit Windows 7 on the x86-64 architecture.</div><div class="t m0 x2d ha y86 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>Red Hat Enterprise 64-bit Linux (RHEL) versions 6 on the x86-64 architecture.</div><div class="t m0 x2d ha y87 ff4 fs6 fc0 sc0 ls0 ws0">You will use the development system to perform the following tasks:</div><div class="t m0 x2d ha y88 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>Compile OpenCL kernel source files to create hardware configuration files.</div><div class="t m0 x2d ha y89 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>Cross-compile the host executables to the ARM</div><div class="t m0 x2e hf y8a ff7 fsa fc0 sc0 ls0 ws0">®</div><div class="t m0 x2f ha y89 ff4 fs6 fc0 sc0 ls0 ws0"> processor.</div><div class="t m0 x2d ha y8b ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>Connect your system to the SoC board so that they can communicate with each other using</div><div class="t m0 x30 ha y8c ff4 fs6 fc0 sc0 ls0 ws0">UART over USB connection.</div><div class="t m0 x2c h18 y8d ff1 fs6 fc0 sc0 ls0 ws0">Software Prerequisites</div><div class="t m0 x8 he y8e ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>Linux systems require the Perl command version 5 or later. Ensure that your <span class="ff6">PATH</span> environment</div><div class="t m0 xa ha y8f ff4 fs6 fc0 sc0 ls0 ws0">variable setting includes the path to the Perl command.</div><div class="t m0 x7 h3 y90 ff1 fs1 fc0 sc0 ls0 ws0">Contents of the Altera SDK for OpenCL</div><div class="t m0 x8 ha y91 ff4 fs6 fc0 sc0 ls0 ws0">The AOCL provides logic components, drivers, and AOCL-specific libraries and files.</div><div class="t m0 x2c h18 y92 ff1 fs6 fc0 sc0 ls0 ws0">Logic Components</div><div class="t m0 x8 he y93 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>The <span class="ff6">Altera Offline Compiler</span> (AOC) translates your OpenCL device code into a hardware configuration</div><div class="t m0 xa ha y94 ff4 fs6 fc0 sc0 ls0 ws0">file that the system loads onto an Altera FPGA.</div><div class="t m0 x8 he y95 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>The <span class="ff6">AOCL utility</span> includes a set of commands you can invoke to perform high-level tasks such as</div><div class="t m0 xa ha y96 ff4 fs6 fc0 sc0 ls0 ws0">running diagnostic tests.</div><div class="t m0 x8 he y97 ff4 fs6 fc0 sc0 ls0 ws0">•<span class="_ _7"> </span>The <span class="ff6">host runtime</span> provides the OpenCL host platform application programming interface (API) and</div><div class="t m0 xa ha y98 ff4 fs6 fc0 sc0 ls0 ws0">runtime API for your OpenCL host application.</div><div class="t m0 xa ha y99 ff4 fs6 fc0 sc0 ls0 ws0">The host runtime consists of libraries that provide OpenCL APIs, hardware abstractions, and helper</div><div class="t m0 xa ha y9a ff4 fs6 fc0 sc0 ls0 ws0">libraries.</div><div class="t m0 x2c h18 y9b ff1 fs6 fc0 sc0 ls0 ws0">Drivers, Libraries and Files</div><div class="t m0 x8 ha y9c ff4 fs6 fc0 sc0 ls0 ws0">The software installation process installs the software into a directory that you own. The</div><div class="t m0 x8 he y9d ff6 fs6 fc0 sc0 ls0 ws0">ALTERAOCLSDKROOT<span class="ff4"> environment variable references the path to the software installation directory.</span></div><div class="t m0 x31 h4 y31 ff1 fs2 fc0 sc0 ls0 ws0">1-2</div><div class="t m0 xd h4 y32 ff1 fs2 fc0 sc0 ls0 ws0">Prerequisites</div><div class="t m0 x32 h19 y9e ff1 fs9 fc2 sc0 ls0 ws0">OCL006-15.0.0</div><div class="t m0 x24 h19 y9f ff1 fs9 fc2 sc0 ls0 ws0">2015.05.04</div><div class="t m0 xe h4 ya0 ff1 fs2 fc0 sc0 ls0 ws0">Altera Corporation</div><div class="t m0 x33 h4 ya1 ff1 fs2 fc1 sc0 ls0 ws0">Altera SDK for OpenCL Cyclone V SoC Getting Started Guide</div><div class="t m0 x34 h4 ya2 ff1 fs2 fc1 sc0 ls0 ws0">Send Feedback</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div>