Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
b6e08a6
.
ysims Jul 1, 2022
1898c2f
.
ysims Jul 2, 2022
1b83189
add flag
ysims Jul 2, 2022
cc1b19a
Add functionality to save the opencl compiled binary
ysims Jul 3, 2022
b86fea2
include filesystem
ysims Jul 3, 2022
afc9b4b
fix compile issues
ysims Jul 3, 2022
4a5cadd
print statements
ysims Jul 3, 2022
b5aa7ae
Delete
ysims Jul 3, 2022
6dbafa4
debugging
ysims Jul 3, 2022
0adb8be
.
ysims Jul 3, 2022
36da129
.
ysims Jul 3, 2022
f07efb6
.
ysims Jul 3, 2022
27c4de0
.
ysims Jul 4, 2022
2f6b881
.
ysims Jul 4, 2022
601b27a
.
ysims Jul 4, 2022
f8020a1
.
ysims Jul 4, 2022
99ef176
oops
ysims Jul 4, 2022
7543913
maybe actually save the variable
ysims Jul 4, 2022
40095fd
.
ysims Jul 4, 2022
c3d54ca
Remove logs
ysims Jul 4, 2022
35d1fac
Minor changes
ysims Jul 4, 2022
5cbdcc7
check if we don't need this
ysims Jul 4, 2022
aaecbea
Remove unneeded code
ysims Jul 4, 2022
d7ae577
minor formatting
ysims Jul 4, 2022
4f168f8
something something
ysims Jul 4, 2022
f60c498
Fix compile errors
ysims Jul 4, 2022
59bf655
add logs
ysims Jul 5, 2022
89f5fd4
more logs
ysims Jul 5, 2022
2bfaabc
.
ysims Jul 5, 2022
ae4941c
.
ysims Jul 5, 2022
bc93439
.
ysims Jul 5, 2022
15b51c0
fix up some things
ysims Jul 6, 2022
925fa7a
move loading into if
ysims Jul 6, 2022
29a0f33
fix compile errors
ysims Jul 6, 2022
a545623
clear binary
ysims Jul 6, 2022
a07d465
.
ysims Jul 6, 2022
b2a0846
.
ysims Jul 6, 2022
15c69be
compile
ysims Jul 6, 2022
2ad991a
.
ysims Jul 6, 2022
946a0bd
.
ysims Jul 6, 2022
f71f5c8
.
ysims Jul 6, 2022
696f8d2
.
ysims Jul 6, 2022
91818ec
close
ysims Jul 6, 2022
9f88425
read binary
ysims Jul 6, 2022
f253c8d
.
ysims Jul 6, 2022
0f99162
reset vars
ysims Jul 6, 2022
6aaf369
.
ysims Jul 6, 2022
e146ff1
.
ysims Jul 6, 2022
37b59a8
.
ysims Jul 6, 2022
dafe3d1
.
ysims Jul 6, 2022
b87688a
.
ysims Jul 6, 2022
efe87d4
.
ysims Jul 6, 2022
d5bf1bb
.
ysims Jul 6, 2022
26ef153
.
ysims Jul 6, 2022
1980646
null to nullptr
ysims Jul 6, 2022
1a6c054
move around function
ysims Jul 6, 2022
554c5a2
add delete
ysims Jul 6, 2022
21717e4
change saving binary type to vector char
ysims Jul 6, 2022
8eabe87
.
ysims Jul 6, 2022
11fa3ac
.
ysims Jul 6, 2022
e4d14df
.
ysims Jul 7, 2022
bb23ec5
.
ysims Jul 7, 2022
f9113fc
.
ysims Jul 7, 2022
f4565b3
.
ysims Jul 7, 2022
9b101bf
.
ysims Jul 7, 2022
282fd21
.
ysims Jul 7, 2022
d3e0d9a
.
ysims Jul 7, 2022
8cba41c
.
ysims Jul 7, 2022
afcf39c
.
ysims Jul 7, 2022
a5241d4
.
ysims Jul 7, 2022
610a820
.
ysims Jul 7, 2022
f395be9
remove logs
ysims Jul 7, 2022
325aa35
.
ysims Jul 7, 2022
fc7f4f1
build if read failed
ysims Jul 7, 2022
b875f56
treat as exception instead
ysims Jul 7, 2022
a7c0790
.
ysims Jul 7, 2022
cdc56fd
Merge branch 'test' into main
ysims Jul 7, 2022
7cd11f1
compile error
ysims Jul 7, 2022
1ce331a
move to function
ysims Jul 7, 2022
bc2dad5
Move build to function
ysims Jul 7, 2022
abe8de9
fix compile errors
ysims Jul 7, 2022
a53bc2e
Remove logs and add comments
ysims Jul 7, 2022
53d4c60
split functions
ysims Jul 7, 2022
4fd332e
Apply suggestions from code review
ysims Jul 7, 2022
10a4135
compile errors
ysims Jul 7, 2022
cd7db89
remove iostream
ysims Jul 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
include filesystem
  • Loading branch information
ysims committed Jul 3, 2022
commit b86fea2cf0576aec783c6edcec6bc6dbc3e93c54
29 changes: 15 additions & 14 deletions cpp/visualmesh/engine/opencl/engine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
// If OpenCL is disabled then don't provide this file
#if !defined(VISUALMESH_DISABLE_OPENCL)

#include <filesystem>
#include <iomanip>
#include <iostream>
#include <numeric>
Expand Down Expand Up @@ -48,20 +49,20 @@ namespace visualmesh {
namespace engine {
namespace opencl {

using fs = std::filesystem

/**
* @brief An OpenCL implementation of the visual mesh inference engine
*
* @details
* The OpenCL implementation is designed to be used for high performance inference. It is able to take
* advantage of either GPUs from Intel, AMD, ARM, NVIDIA etc as well as multithreaded CPU implementations.
* This allows it to be very flexible with its deployment on devices.
*
* @tparam Scalar the scalar type used for calculations and storage (normally one of float or double)
*/
template <typename Scalar>
class Engine {
using fs = std::filesystem;

/**
* @brief An OpenCL implementation of the visual mesh inference engine
*
* @details
* The OpenCL implementation is designed to be used for high performance inference. It is able to take
* advantage of either GPUs from Intel, AMD, ARM, NVIDIA etc as well as multithreaded CPU implementations.
* This allows it to be very flexible with its deployment on devices.
*
* @tparam Scalar the scalar type used for calculations and storage (normally one of float or double)
*/
template <typename Scalar>
class Engine {
private:
// OpenCL ::clSetKernelArg functions take the sizeof a pointer as their argument, this is correct
static constexpr size_t MEM_SIZE = sizeof(cl_mem);
Expand Down