Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do cleanup for the FPGA-accelerated pow #63

Merged
merged 4 commits into from
Aug 30, 2018

Conversation

ajblane
Copy link
Collaborator

@ajblane ajblane commented Aug 29, 2018

Here is a summary for cleaning implementation of the FPGA-accelerated
pow up

  • Do not have a responsibility to multi-thread management as possible
  • Do not implememt multi-threads
  • Clean up fpga registers map, e.g. tick count and hach count

Here is a summary for cleaning implementation of the FPGA-accelerated
pow up
* Do not have a responsibility to multi-thread management as possible
* Do not implememt multi-threads
* Clean up fpga registers map, e.g. tick count and hach count
@furuame
Copy link
Member

furuame commented Aug 29, 2018

Is it possible that 2 more FPGA boards on the one platform in the future? At this time, you will need num_max_thread to manage this scenario.


close(devmem_fd);
free(ctx);
}

static void *PoWFPGAAccel_getPoWContext(ImplContext *impl_ctx,
int8_t *trytes,
int mwm)
{
pthread_mutex_lock(&impl_ctx->lock);
Copy link
Member

@furuame furuame Aug 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this statement also can be dropped if you ensure that only 1 fpga board would be supported on the platform. Or it should be reserved for extensibility as well as PoWFPGAAccel_freePoWContext.

Copy link
Collaborator Author

@ajblane ajblane Aug 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree your point. I will drop this lock.

@ajblane
Copy link
Collaborator Author

ajblane commented Aug 29, 2018

I think one dcurl maps one FPGA board.

@furuame
Copy link
Member

furuame commented Aug 29, 2018

@ajblane Please note that in the README and I would approve this PR.

For IOTA FPGA-accelerated integration into dcurl, we consider one dcurl maps one FPGA board unlike the GPU-accelerated solution which is considered a multi-GPU scenario.

Here is a simple summary of integrating FPGA-accelerated solution into dcurl:
* Do not have a responsibility to multi-thread management as possible
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Only one thread is allowed to do FPGA PoW"


Here is a simple summary of integrating FPGA-accelerated solution into dcurl:
* Do not have a responsibility to multi-thread management as possible
* Do not implememt multi-threads
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"No multi-thread management inside the FPGA Implementation Context is implemented"

@furuame furuame merged commit a6b3f35 into DLTcollab:dev Aug 30, 2018
@ajblane ajblane deleted the fpga-pow-cleanup branch September 28, 2018 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants