Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
azure-cloud-mining-script
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
azure-cloud-mining-script
Commits
46663db4
There was an error fetching the commit references. Please try again later.
Commit
46663db4
authored
7 years ago
by
psychocrypt
Browse files
Options
Downloads
Patches
Plain Diff
revert input size change
revert #1198, the block size is limited to 84byte
parent
f7309328
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
+3
-2
3 additions, 2 deletions
xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
with
3 additions
and
2 deletions
xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu
+
3
−
2
View file @
46663db4
...
...
@@ -127,7 +127,7 @@ __global__ void cryptonight_extra_gpu_prepare( int threads, uint32_t * __restric
uint32_t
ctx_b
[
4
];
uint32_t
ctx_key1
[
40
];
uint32_t
ctx_key2
[
40
];
uint32_t
input
[
2
8
];
uint32_t
input
[
2
1
];
memcpy
(
input
,
d_input
,
len
);
//*((uint32_t *)(((char *)input) + 39)) = startNonce + thread;
...
...
@@ -299,7 +299,8 @@ extern "C" int cryptonight_extra_cpu_init(nvid_ctx* ctx)
CUDA_CHECK
(
ctx
->
device_id
,
cudaMalloc
(
&
ctx
->
d_ctx_text
,
32
*
sizeof
(
uint32_t
)
*
wsize
));
CUDA_CHECK
(
ctx
->
device_id
,
cudaMalloc
(
&
ctx
->
d_ctx_a
,
4
*
sizeof
(
uint32_t
)
*
wsize
));
CUDA_CHECK
(
ctx
->
device_id
,
cudaMalloc
(
&
ctx
->
d_ctx_b
,
ctx_b_size
));
CUDA_CHECK
(
ctx
->
device_id
,
cudaMalloc
(
&
ctx
->
d_input
,
28
*
sizeof
(
uint32_t
)
));
// POW block format http://monero.wikia.com/wiki/PoW_Block_Header_Format
CUDA_CHECK
(
ctx
->
device_id
,
cudaMalloc
(
&
ctx
->
d_input
,
21
*
sizeof
(
uint32_t
)
));
CUDA_CHECK
(
ctx
->
device_id
,
cudaMalloc
(
&
ctx
->
d_result_count
,
sizeof
(
uint32_t
)
));
CUDA_CHECK
(
ctx
->
device_id
,
cudaMalloc
(
&
ctx
->
d_result_nonce
,
10
*
sizeof
(
uint32_t
)
));
CUDA_CHECK_MSG
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment