Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite8aa664

Browse files
committed
Added __syncthreads() before hashing
1 parent709c1eb commite8aa664

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎GPU/GPUCompute.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ __device__ void ComputeKeysComp(uint64_t *startx, uint64_t *starty, prefix_t *sP
582582
ModSub256(px,_p2,px);
583583
ModSub256(px,Gx[i]);// px = pow2(s) - p1.x - p2.x;
584584

585-
585+
__syncthreads();
586586
CHECK_P2PKH_POINT(j*GRP_SIZE+ (GRP_SIZE/2+ (i+1)));
587587

588588
// P = StartPoint - i*G, if (x,y) = i*G then (x,-y) = -i*G
@@ -595,6 +595,7 @@ __device__ void ComputeKeysComp(uint64_t *startx, uint64_t *starty, prefix_t *sP
595595
ModSub256(px,_p2,px);
596596
ModSub256(px,Gx[i]);// px = pow2(s) - p1.x - p2.x;
597597

598+
__syncthreads();
598599
CHECK_P2PKH_POINT(j*GRP_SIZE+ (GRP_SIZE/2- (i+1)));
599600

600601
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp