Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Merge requests
!93
resolves
L2SDP-191
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
resolves
L2SDP-191
L2SDP-191
into
master
Overview
0
Commits
18
Pipelines
0
Changes
36
Merged
resolves L2SDP-191
Reinier van der Walle
requested to merge
L2SDP-191
into
master
May 20, 2021
Overview
0
Commits
18
Pipelines
0
Changes
36
Closes
L2SDP-191
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
4ac87bb2
18 commits,
May 20, 2021
36 files
+
18791
−
1749
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
36
applications/lofar2/designs/lofar2_unb2b_ring_opencl/host/lib/common/inc/common.h
0 → 100644
+
48
−
0
View file @ 4ac87bb2
Edit in single-file editor
Open in Web IDE
#include
<iostream>
#include
<sstream>
#include
<fstream>
#include
<iomanip>
#define CL_HPP_ENABLE_EXCEPTIONS
#define CL_HPP_MINIMUM_OPENCL_VERSION 120
#define CL_HPP_TARGET_OPENCL_VERSION 120
#define CL_HPP_ENABLE_PROGRAM_CONSTRUCTION_FROM_ARRAY_COMPATIBILITY
#include
<CL/cl2.hpp>
void
init
(
cl
::
Context
&
context
,
std
::
vector
<
cl
::
Device
>
&
devices
);
void
print_platform
(
cl
::
Platform
&
platform
);
void
print_device
(
cl
::
Device
&
device
,
bool
marker
=
false
);
std
::
string
get_source
(
std
::
string
&
filename
);
std
::
string
get_flags
();
cl
::
Program
compile_program
(
cl
::
Context
&
context
,
cl
::
Device
&
device
,
std
::
string
&
source
);
void
write_source
(
std
::
string
&
source
,
std
::
string
&
filename
);
cl
::
Program
get_program
(
cl
::
Context
&
context
,
cl
::
Device
&
device
,
std
::
string
&
filename
);
cl
::
Kernel
get_kernel
(
cl
::
Program
&
program
,
std
::
string
&
name
);
double
compute_runtime
(
cl
::
Event
&
start
,
cl
::
Event
&
end
);
Loading