Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
multiscale
lammps
Commits
39a09d3a
Unverified
Commit
39a09d3a
authored
7 years ago
by
Steve Plimpton
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #814 from stanmoore1/kk_snap_workaround
Workaround issue in pair_snap_kokkos
parents
812a4545
4a875dc6
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
src/KOKKOS/pair_snap_kokkos_impl.h
+1
-1
1 addition, 1 deletion
src/KOKKOS/pair_snap_kokkos_impl.h
src/SNAP/pair_snap.h
+6
-3
6 additions, 3 deletions
src/SNAP/pair_snap.h
with
7 additions
and
4 deletions
src/KOKKOS/pair_snap_kokkos_impl.h
+
1
−
1
View file @
39a09d3a
...
...
@@ -188,7 +188,7 @@ void PairSNAPKokkos<DeviceType>::compute(int eflag_in, int vflag_in)
int
team_size_max
=
Kokkos
::
TeamPolicy
<
DeviceType
>::
team_size_max
(
*
this
);
int
vector_length
=
8
;
#ifdef KOKKOS_ENABLE_CUDA
int
team_size
=
2
0
;
//max_neighs;
int
team_size
=
3
2
;
//max_neighs;
if
(
team_size
*
vector_length
>
team_size_max
)
team_size
=
team_size_max
/
vector_length
;
#else
...
...
This diff is collapsed.
Click to expand it.
src/SNAP/pair_snap.h
+
6
−
3
View file @
39a09d3a
...
...
@@ -37,8 +37,11 @@ public:
virtual
double
init_one
(
int
,
int
);
virtual
double
memory_usage
();
double
rcutfac
,
quadraticflag
;
// declared public to workaround gcc 4.9
int
ncoeff
;
// compiler bug, manifest in KOKKOS package
protected:
int
ncoeff
,
ncoeffq
,
ncoeffall
;
int
ncoeffq
,
ncoeffall
;
double
**
bvec
,
***
dbvec
;
class
SNA
**
sna
;
int
nmax
;
...
...
@@ -97,8 +100,8 @@ protected:
double
*
wjelem
;
// elements weights
double
**
coeffelem
;
// element bispectrum coefficients
int
*
map
;
// mapping from atom types to elements
int
twojmax
,
diagonalstyle
,
switchflag
,
bzeroflag
,
quadraticflag
;
double
rcutfac
,
rfac0
,
rmin0
,
wj1
,
wj2
;
int
twojmax
,
diagonalstyle
,
switchflag
,
bzeroflag
;
double
rfac0
,
rmin0
,
wj1
,
wj2
;
int
rcutfacflag
,
twojmaxflag
;
// flags for required parameters
};
...
...
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