Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
minisolver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Org mode and Guix tutorial - Guix HPC Workshop
Software
minisolver
Commits
12cb1326
Commit
12cb1326
authored
1 year ago
by
FELŠÖCI Marek
Browse files
Options
Downloads
Patches
Plain Diff
Remove HMAT option for shuffle clustering
parent
35f37833
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/main.h
+0
-6
0 additions, 6 deletions
include/main.h
src/hmat.c
+6
-18
6 additions, 18 deletions
src/hmat.c
src/main.c
+0
-1
0 additions, 1 deletion
src/main.c
with
6 additions
and
25 deletions
include/main.h
+
0
−
6
View file @
12cb1326
...
...
@@ -45,12 +45,6 @@ extern ScalarType stype;
/*! \brief Wavelength (for oscillatory kernels). */
extern
double
lambda
;
/*! \brief Flag to use Hmat shuffle clustering (default is 0).
It can be changed with --use_hmat_shuffle (read in readFlagsTestHMAT() in hmat.c)
*/
extern
int
use_hmat_shuffle
;
/*! \brief Value of the Hmat shuffle clustering minimum divider (minimum number of children per box, default is 2)
It can be changed with "--hmat_divider_min" (read in readFlagsTestHMAT() in hmat.c)
...
...
This diff is collapsed.
Click to expand it.
src/hmat.c
+
6
−
18
View file @
12cb1326
...
...
@@ -20,12 +20,6 @@ int init_hmat_interface() {
}
int
readFlagsTestHMAT
(
int
*
argc
,
char
***
argv
)
{
/* Flag to use Hmat shuffle clustering */
if
(
MpfArgHasName
(
argc
,
*
argv
,
1
,
"--use_hmat_shuffle"
))
{
use_hmat_shuffle
=
1
;
printf
(
"Using Hmat shuffle clustering
\n
"
)
;
}
/* Value of the Hmat shuffle clustering minimum divider (minimum number of children per box) */
if
(
MpfArgGetInt
(
argc
,
*
argv
,
1
,
"--hmat_divider_min"
,
&
divider_min
))
{
printf
(
"Reading Hmat shuffle clustering minimum divider = %d
\n
"
,
divider_min
)
;
...
...
@@ -349,19 +343,13 @@ HMAT_desc_t *HMAT_generate_matrix( hmat_interface_t *hi ) {
hmat_clustering_algorithm_t
*
clustering
=
NULL
;
hmat_cluster_tree_builder_t
*
ct_builder
;
if
(
use_hmat_shuffle
)
{
clustering
=
hmat_create_shuffle_clustering
(
hmat_create_clustering_median
(),
divider_min
,
divider_max
);
ct_builder
=
hmat_create_cluster_tree_builder
(
clustering
);
}
else
{
clustering
=
hmat_create_clustering_median
();
if
(
mpf_hmat_settings
.
max_leaf_size
>
0
)
{
printf
(
"HMat maximum leaf size: %d
\n
"
,
mpf_hmat_settings
.
max_leaf_size
);
clustering
=
hmat_create_clustering_max_dof
(
clustering
,
mpf_hmat_settings
.
max_leaf_size
);
}
hmat_set_clustering_divider
(
clustering
,
2
);
ct_builder
=
hmat_create_cluster_tree_builder
(
clustering
);
clustering
=
hmat_create_clustering_median
();
if
(
mpf_hmat_settings
.
max_leaf_size
>
0
)
{
printf
(
"HMat maximum leaf size: %d
\n
"
,
mpf_hmat_settings
.
max_leaf_size
);
clustering
=
hmat_create_clustering_max_dof
(
clustering
,
mpf_hmat_settings
.
max_leaf_size
);
}
hmat_set_clustering_divider
(
clustering
,
2
);
ct_builder
=
hmat_create_cluster_tree_builder
(
clustering
);
double
*
points
=
createCylinder
();
hmat_cluster_tree_t
*
cluster_tree
=
hmat_create_cluster_tree_from_builder
(
points
,
3
,
nbPts
,
...
...
This diff is collapsed.
Click to expand it.
src/main.c
+
0
−
1
View file @
12cb1326
...
...
@@ -19,7 +19,6 @@ int simplePrec = 0;
int
complexALGO
=
1
;
ScalarType
stype
=
DOUBLE_COMPLEX
;
double
lambda
;
int
use_hmat_shuffle
=
0
;
int
divider_min
=
2
;
int
divider_max
=
4
;
int
use_hodlr
=
0
;
...
...
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