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
70aea9c7
There was an error fetching the commit references. Please try again later.
Commit
70aea9c7
authored
6 years ago
by
Tony Butler
Browse files
Options
Downloads
Patches
Plain Diff
CN_GPU: Fix old compilers and old kernels (Clang 3.5 tested, without CONFIG_HUGETLBFS)
parent
b5918237
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xmrstak/backend/cpu/crypto/cn_gpu_avx.cpp
+6
-0
6 additions, 0 deletions
xmrstak/backend/cpu/crypto/cn_gpu_avx.cpp
xmrstak/backend/cpu/crypto/cryptonight_common.cpp
+7
-0
7 additions, 0 deletions
xmrstak/backend/cpu/crypto/cryptonight_common.cpp
with
13 additions
and
0 deletions
xmrstak/backend/cpu/crypto/cn_gpu_avx.cpp
+
6
−
0
View file @
70aea9c7
...
...
@@ -2,6 +2,12 @@
#include
"../../cryptonight.hpp"
#pragma GCC target ("avx2")
#ifndef _mm256_bslli_epi128
#define _mm256_bslli_epi128(a, count) _mm256_slli_si256((a), (count))
#endif
#ifndef _mm256_bsrli_epi128
#define _mm256_bsrli_epi128(a, count) _mm256_srli_si256((a), (count))
#endif
inline
void
prep_dv_avx
(
__m256i
*
idx
,
__m256i
&
v
,
__m256
&
n01
)
{
...
...
This diff is collapsed.
Click to expand it.
xmrstak/backend/cpu/crypto/cryptonight_common.cpp
+
7
−
0
View file @
70aea9c7
...
...
@@ -261,6 +261,13 @@ cryptonight_ctx* cryptonight_alloc_ctx(size_t use_fast_mem, size_t use_mlock, al
#else
ptr
->
long_state
=
(
uint8_t
*
)
mmap
(
NULL
,
hashMemSize
,
PROT_READ
|
PROT_WRITE
,
MAP_PRIVATE
|
MAP_ANONYMOUS
|
MAP_HUGETLB
|
MAP_POPULATE
,
-
1
,
0
);
if
(
ptr
->
long_state
==
MAP_FAILED
)
{
// try without MAP_HUGETLB for crappy kernels
msg
->
warning
=
"mmap with HUGETLB failed, attempting without it (you should fix your kernel)"
;
ptr
->
long_state
=
(
uint8_t
*
)
mmap
(
NULL
,
hashMemSize
,
PROT_READ
|
PROT_WRITE
,
MAP_PRIVATE
|
MAP_ANONYMOUS
|
MAP_POPULATE
,
-
1
,
0
);
}
#endif
if
(
ptr
->
long_state
==
MAP_FAILED
)
...
...
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