Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ptSpar
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
coregraphie
ptSpar
Merge requests
!2
Minor changes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Open
Minor changes
grossi/ptspar:dev
into
main
Overview
0
Commits
4
Pipelines
0
Changes
3
Open
Minor changes
Gianluca Rossi
requested to merge
grossi/ptspar:dev
into
main
Mar 21, 2024
Overview
0
Commits
4
Pipelines
0
Changes
3
0
0
Merge request reports
Compare
main
version 3
29fc2d7f
Apr 2, 2024
version 2
f726490f
Apr 2, 2024
version 1
e24c280c
Mar 21, 2024
main (HEAD)
and
latest version
latest version
7c6f449e
4 commits,
Apr 2, 2024
version 3
29fc2d7f
3 commits,
Apr 2, 2024
version 2
f726490f
2 commits,
Apr 2, 2024
version 1
e24c280c
1 commit,
Mar 21, 2024
3 files
+
11
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
(p,t)_sparsification/main.cpp
+
3
−
3
View file @ ba61d75d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -6,7 +6,7 @@
#include
<string>
#include
"hash.h"
#include
<omp.h>
#include
<thread>
#define NUM_TRIALS 10
@@ -18,7 +18,7 @@ namespace po = boost::program_options;
int
main
(
int
argc
,
char
*
argv
[])
{
srand
((
unsigned
)
time
(
NULL
));
unsigned
int
nproc
=
std
::
thread
::
hardware_concurrency
();
po
::
options_description
desc
(
"Allowed options"
);
desc
.
add_options
()
(
"help"
,
"produce help message"
)
@@ -66,7 +66,7 @@ int main(int argc, char *argv[]) {
#pragma omp parallel for num_threads(
NUM_TRIALS
)
#pragma omp parallel for num_threads(
nproc
)
for
(
int
i
=
0
;
i
<
NUM_TRIALS
;
i
++
)
{
auto
start
=
std
::
chrono
::
steady_clock
::
now
();
Loading