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

Update cryptonight.cl #51

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Srinivasuluch
Copy link

The changes are specifically for ROCm platform & compiler.
Add a precompiler guard around the unroll 1 that avoid that other compiler are effected by this change.

The changes are specifically for ROCm platform & compiler.
Add a precompiler guard around the unroll 1 that avoid that other compiler are effected by this change.
@@ -284,7 +284,7 @@ void keccakf1600_2(ulong *st)
//tmp1 = st[15]; tmp2 = st[16]; st[15] = bitselect(st[15] ^ st[17], st[15], st[16]); st[16] = bitselect(st[16] ^ st[18], st[16], st[17]); st[17] = bitselect(st[17] ^ st[19], st[17], st[18]); st[18] = bitselect(st[18] ^ tmp1, st[18], st[19]); st[19] = bitselect(st[19] ^ tmp2, st[19], tmp1);
//tmp1 = st[20]; tmp2 = st[21]; st[20] = bitselect(st[20] ^ st[22], st[20], st[21]); st[21] = bitselect(st[21] ^ st[23], st[21], st[22]); st[22] = bitselect(st[22] ^ st[24], st[22], st[23]); st[23] = bitselect(st[23] ^ tmp1, st[23], st[24]); st[24] = bitselect(st[24] ^ tmp2, st[24], tmp1);

#pragma unroll
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add procompiler guards for ROCm around this unroll that the current behavior is not changed

#ifndef __ROCM__ #please search for the correct guard name this is only a placeholder
#   pragma unroll
#endif

@psychocrypt psychocrypt self-assigned this Jun 21, 2017
@psychocrypt
Copy link
Collaborator

ping

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.

2 participants