Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
codes
workloads
Commits
238dc46d
Commit
238dc46d
authored
Apr 26, 2018
by
Misbah Mubarak
Browse files
enabling nearest neighbor compilation
parent
f6cf0fe9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
swm/configure.ac
View file @
238dc46d
...
...
@@ -6,6 +6,7 @@ AC_INIT([swm], [0.1], [],[],[])
AC_CONFIG_MACRO_DIRS([m4])
LT_INIT
AC_CANONICAL_TARGET
AC_CANONICAL_SYSTEM
AC_CANONICAL_HOST
...
...
@@ -15,6 +16,7 @@ AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
# we should remove this soon, only needed for automake 1.10 and older
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([README.md])
# Checks for programs.
...
...
@@ -23,6 +25,7 @@ AM_PROG_CC_C_O
AC_PROG_CXX
AC_PROG_CXXCPP
AX_CXX_COMPILE_STDCXX(11, noext, mandatory)
AC_PROG_MKDIR_P
AC_REQUIRE_CPP
...
...
swm/m4/ax_cxx_compile_stdcxx.m4
0 → 100644
View file @
238dc46d
This diff is collapsed.
Click to expand it.
swm/src/Makefile.subdir
View file @
238dc46d
...
...
@@ -10,8 +10,8 @@ include_HEADERS = \
src_libswm_la_SOURCES
=
src/lammps/lammps.cpp
\
src/nekbone/cubiclattice.cpp
\
src/nekbone/nekbone_swm_user_code.cpp
#
src/nearest_neighbor/nearest_neighbor_swm_user_code.cpp
src/nekbone/nekbone_swm_user_code.cpp
\
src/nearest_neighbor/nearest_neighbor_swm_user_code.cpp
dist_data_DATA
=
src/lammps/lammps_workload.json
\
src/nearest_neighbor/skeleton.json
\
...
...
swm/src/nearest_neighbor/boost_ptree_array_to_std_vector.h
View file @
238dc46d
...
...
@@ -4,8 +4,7 @@
#include
<assert.h>
#include
<iostream>
template
<
typename
T
>
std
::
vector
<
T
>
boost_ptree_array_to_std_vector
(
boost
::
property_tree
::
ptree
const
&
pt
,
boost
::
property_tree
::
ptree
::
key_type
const
&
key
,
std
::
vector
<
T
>
def
,
bool
disallow_empty_arrays
=
true
)
template
<
typename
T
>
std
::
vector
<
T
>
boost_ptree_array_to_std_vector
(
boost
::
property_tree
::
ptree
const
&
pt
,
boost
::
property_tree
::
ptree
::
key_type
const
&
key
,
std
::
vector
<
T
>
def
,
bool
disallow_empty_arrays
=
true
)
{
if
(
pt
.
count
(
key
))
{
std
::
vector
<
T
>
r
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment