Skip to content

Commit

Permalink
opencl multi-gpu fix
Browse files Browse the repository at this point in the history
  • Loading branch information
madMAx43v3r committed Feb 27, 2023
1 parent 5deec8c commit 4ba5acc
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 6 deletions.
Binary file modified mmx-node/linux/x86_64/bin/mmx_farmer
Binary file not shown.
Binary file modified mmx-node/linux/x86_64/bin/mmx_harvester
Binary file not shown.
Binary file modified mmx-node/linux/x86_64/bin/mmx_node
Binary file not shown.
Binary file modified mmx-node/linux/x86_64/bin/mmx_timelord
Binary file not shown.
Binary file modified mmx-node/linux/x86_64/bin/mmx_wallet
Binary file not shown.
3 changes: 2 additions & 1 deletion mmx-node/linux/x86_64/include/automy/basic_opencl/Context.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define CL_TARGET_OPENCL_VERSION 120

#include <CL/cl.h>
#include <CL/cl_ext.h>

#include <vector>
#include <string>
Expand All @@ -35,7 +36,7 @@ std::string get_platform_name(cl_platform_id platform);

cl_platform_id find_platform_by_name(const std::string& name);

cl_context create_context(cl_platform_id platform, cl_device_type device_type);
cl_context create_context(cl_platform_id platform, const std::vector<cl_device_id>& devices);

void release_context(cl_context& context);

Expand Down
7 changes: 3 additions & 4 deletions mmx-node/linux/x86_64/include/automy/basic_opencl/Program.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ class Program {

std::vector<std::string> build_log;

Program(cl_context context, cl_platform_id platform);
Program(cl_context context);

Program(const Program&) = delete;
Program& operator=(const Program&) = delete;

~Program();

static std::shared_ptr<Program> create(cl_context context, cl_platform_id platform);
static std::shared_ptr<Program> create(cl_context context);

void add_source(const std::string& file_name);

Expand All @@ -42,7 +42,7 @@ class Program {

void create_from_source();

bool build(cl_device_type device_type, bool with_arg_names = true);
bool build(const std::vector<cl_device_id>& devices, bool with_arg_names = true);

void print_sources(std::ostream& out) const;

Expand All @@ -52,7 +52,6 @@ class Program {

private:
cl_context context;
cl_platform_id platform;
cl_program program = nullptr;
bool have_arg_info = false;

Expand Down
Binary file modified mmx-node/linux/x86_64/lib/libautomy_basic_opencl.so
Binary file not shown.
Binary file modified mmx-node/linux/x86_64/lib/libautomy_basic_opencl_static.a
Binary file not shown.
Binary file modified mmx-node/linux/x86_64/lib/libmmx_modules.so
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "GIT_COMMIT_HASH": "16939684ebca0ee7085db420c20690606edabb83" }
{ "GIT_COMMIT_HASH": "8798516448ba980f3fc1ea0293a816206fa4b02b" }

0 comments on commit 4ba5acc

Please sign in to comment.