You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10-4
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@
2
2
3
3
The Jet Partitioner is a parallel graph partitioner that runs on most CPU and GPU systems (via Kokkos, a required dependency).
4
4
This partitioner was developed in a collaboration between Sandia National Labs and Pennsylvania State University.
5
-
For details about the algorithm, please see https://arxiv.org/abs/2304.13194
5
+
For details about the algorithm, please see https://arxiv.org/abs/2304.13194
6
+
If you intend to cite this partitioner in a publication, please cite https://doi.org/10.1137/23M1559129
6
7
7
8
## Dependencies
8
9
@@ -15,7 +16,7 @@ Metis (https://github.com/KarypisLab/METIS): Used for initial partitioning of co
15
16
16
17
### Building
17
18
18
-
Standard CMake build process. If your Metis build requires GKlib, add `-DLINK_GKLIB=True` to your cmake command when building Jet. Example build scripts are provided for macOS with OpenMP and Linux systems with Cuda. These scripts handle all required dependencies.
19
+
Standard CMake build process. CMake version >= 3.23 required. If your Metis build requires GKlib, add `-DLINK_GKLIB=True` to your cmake command when building Jet. You can add `-DMETIS_HINT=<metis install location>` to help cmake find metis (and gklib if it has the same install location) if you have not added metis to your relevant path variables. Example build scripts are provided for macOS with OpenMP and Linux systems with Cuda. These scripts handle all required dependencies.
19
20
20
21
### Executables
21
22
@@ -30,13 +31,18 @@ jet\_serial: jet but runs on the host on a single thread.
30
31
pstat: Given a metis graph file, partition file, and k-value, will print out quality information on the partition.
31
32
32
33
### Using Jet Partitioner in Your Code
33
-
We can not provide an option to compile a library due to the use of templates. However, you can import "jet.hpp" into your code to use the partitioner via the "jet\_partitioner::partition" method. Note that this requires you to add our source directory to your include path and also to link our dependencies. This method currently always uses the default coarsening algorithm.
34
+
We provide a cmake package that you can install on your system. Add `find_package(jet CONFIG REQUIRED)` to your project's CMakeLists.txt file and link your executable/s to `jet::jet`. Include `jet.h` in your code to use one of the provided partitioning functions. Each function is distinguished by the target Kokkos execution space it will run in and the type of KokkosKernels CrsMatrix which it accepts. Reference `jet_defs.h` for the relevant template definitions of these parameters. You can set the desired part count and imbalance values on the input config_t struct (see `jet_config.h` for other parameters).
35
+
36
+
#### Tips
37
+
On Linux systems, you can create a file `~/.cmake/packages/jet/find.txt` that cmake will automatically use to find the jet cmake package.
38
+
Inside this file, add the full path to the jet install directory.
34
39
35
40
### Input Format
36
-
We do not yet support vertex weights within metis graph files.
41
+
The partitioner executables accept graphs stored in the metis graph file format. We do not yet support vertex weights within metis graph files.
37
42
38
43
### Config File format:
39
44
\<Coarsening algorithm\> (0 for 2-hop matching)/(1 for HEC)/(2 for pure matching)/(default is 2-hop matching)
40
45
\<Number of parts\>
41
46
\<Partitioning attempts\>
42
47
\<Imbalance value\>
48
+
\<Ultra quality settings\> (Optional) 1 to enable, 0 to disable (default)
0 commit comments