Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BLAS-join
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Google-TPU
BLAS-join
Commits
0d756600
Commit
0d756600
authored
Apr 25, 2019
by
Martin Perdacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc v7.3 bugfix
parent
971c8547
Pipeline
#542
passed with stage
in 2 minutes and 37 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
cmake/CMakeLists.txt
cmake/CMakeLists.txt
+2
-2
cmake/measure/energy.cpp
cmake/measure/energy.cpp
+1
-1
cmake/measure/energy.h
cmake/measure/energy.h
+1
-1
cmake/util/arguments.cpp
cmake/util/arguments.cpp
+2
-2
No files found.
cmake/CMakeLists.txt
View file @
0d756600
cmake_minimum_required
(
VERSION 3.6
)
project
(
blasJoin
)
set
(
UTIL_SOURCES util/dataIo.cpp util/arguments.cpp util/allocation.cpp
measure/energy.cpp
measure/timer.cpp
)
set
(
UTIL_SOURCES util/dataIo.cpp util/arguments.cpp util/allocation.cpp measure/timer.cpp
)
set
(
SOURCE_FILES_SELF main.cpp blasJoin/blasJoin.cpp
${
UTIL_SOURCES
}
)
set
(
SOURCE_FILES_JOIN mainJoin.cpp blasJoin/blasJoin.cpp
${
UTIL_SOURCES
}
)
...
...
@@ -13,7 +13,7 @@ set(SOURCE_FILES_JOIN mainJoin.cpp blasJoin/blasJoin.cpp ${UTIL_SOURCES})
set
(
CMAKE_CXX_FLAGS
"-std=c++11"
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"GNU"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-march=knl -mtune=knl -fpic -ffast-math -DNDEBUG -O3 -DNDDEBUG -fopenmp -l
mkl_core -lmkl_intel_lp64 -lmkl_intel_thread -liomp5 -lboost_system
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-march=knl -mtune=knl -fpic -ffast-math -DNDEBUG -O3 -DNDDEBUG -fopenmp -l
boost_system -Wl,--no-as-needed -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl
"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Intel"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-xmic-avx512 -qopenmp -DNDEBUG -O3 -lmkl_intel_thread -liomp5 -lpthread -lmkl_core -lmkl_intel_lp64 -lboost_system"
)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -qopt-report=2")
...
...
cmake/measure/energy.cpp
View file @
0d756600
#include "energy.h"
#include <sys/ioctl.h>
//
#include <sys/ioctl.h>
Hioki
::
Hioki
(){
this
->
rs_232_open
();
...
...
cmake/measure/energy.h
View file @
0d756600
...
...
@@ -3,7 +3,7 @@
#define ENERGY_CONSUMPTION_H
#include <errno.h>
#include <fcntl.h>
//
#include <fcntl.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
...
...
cmake/util/arguments.cpp
View file @
0d756600
...
...
@@ -74,7 +74,7 @@ void parsing_args(int argc, char* argv[], size_t *n, double *epsilon, size_t *d,
if
(
*
blocksize
>
*
n
||
*
blocksize
<=
1
){
fprintf
(
stderr
,
"Blocksize has to be greater than 1 and smaller or equal to N
\n
"
);
printf
(
"n:%
d, blocksize: %d
\n
"
,
*
n
,
*
blocksize
);
fflush
(
stdout
);
printf
(
"n:%
zu, blocksize: %zu
\n
"
,
*
n
,
*
blocksize
);
fflush
(
stdout
);
exit
(
1
);
}
}
...
...
@@ -155,7 +155,7 @@ void parsing_args_join(int argc, char* argv[], size_t *n, size_t *m, double *eps
if
(
*
blocksize
>
*
n
||
*
blocksize
<=
1
){
fprintf
(
stderr
,
"Blocksize has to be greater than 1 and smaller or equal to N
\n
"
);
printf
(
"n:%
d, blocksize: %d
\n
"
,
*
n
,
*
blocksize
);
fflush
(
stdout
);
printf
(
"n:%
zu, blocksize: %zu
\n
"
,
*
n
,
*
blocksize
);
fflush
(
stdout
);
exit
(
1
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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