Git Product home page Git Product logo

Comments (5)

tromp avatar tromp commented on July 25, 2024

Wouldn't you rather use the provided

CALL_CONVENTION int run_solver(SolverCtx* ctx,
char* header,
int header_length,
u32 nonce,
u32 range,
SolverSolutions *solutions,
SolverStats *stats
)

// Solver statistics, to be instantiated by caller
// and filled by solver if desired
struct SolverStats {
u32 device_id = 0;
u32 edge_bits = 0;
char plugin_name[MAX_NAME_LEN]; // will be filled in caller-side
char device_name[MAX_NAME_LEN];
bool has_errored = false;
char error_reason[MAX_NAME_LEN];
u32 iterations = 0;
u64 last_start_time = 0;
u64 last_end_time = 0;
u64 last_solution_time = 0;
};

API for that?

from cuckoo.

casey avatar casey commented on July 25, 2024

😭Yes, yes I would. Thanks for the tip!

from cuckoo.

casey avatar casey commented on July 25, 2024

What is the suggested way to call that function? It's defined in mean.cu, along with main, but I'd like to call it from a separate binary with a different main function.

from cuckoo.

tromp avatar tromp commented on July 25, 2024

from cuckoo.

casey avatar casey commented on July 25, 2024

Gotcha, that makes sense. Thanks!

from cuckoo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.