forked from ashwinktpu/StarPlat
-
Notifications
You must be signed in to change notification settings - Fork 1
Generate
Durwasa Chakraborty edited this page Nov 16, 2023
·
3 revisions
Ensure the following before attempting to run the StarPlat
library on your MacOS:
- Dependencies: Confirm that all necessary dependencies, with particular attention to MPI, are properly installed.
-
Directory Structure: The directory structure should be as specified, with the
StarPlat
binary and required files located within the/path/to/StarPlat/src
directory.
-
Navigate to the Source Directory: Open a terminal and execute:
cd /path/to/StarPlat/src
-
Execute the Library: Run the
StarPlat
library using the command below:./StarPlat -s -f ../graphcode/staticDSLCodes/sssp_dslV2 -b mpi
The command arguments are as follows:
-
-s
: [This flag's description will be added here.] -
-f
: Designates the DSL file; for this example, it issssp_dslV2
. -
-b mpi
: Sets the backend to MPI.
-
-
Verify the Output: Check for a
.cc
file generated in the directory where theStarPlat
binary is located after successful execution.
If you encounter issues, consider the following solutions:
-
Permission Denied: If you get
bash: ./StarPlat: Permission denied
, change the executable permissions by running:chmod a+x StarPlat
-
Cannot Execute Binary File: A
bash: ./StarPlat: cannot execute binary file
error might indicate an architecture mismatch. Confirm that theMakefile
has the correct settings for your system architecture. Verify the compiler path withwhich gcc
. -
No Such File or Directory: If
bash: ./StarPlat: No such file or directory
is displayed, check that the binary path is correct and all necessary files are in their proper locations. -
Library Not Loaded: Should you encounter an error like
dyld: Library not loaded: /path/to/library
, you need to ensure that all the dynamic libraries required byStarPlat
are installed, or adjust theDYLD_LIBRARY_PATH
environment variable to include the path where the libraries reside. -
Unsupported Architecture: If you're on Apple Silicon and encounter architecture-related issues, try using
arch -x86_64 ./StarPlat
to run the binary under Rosetta 2, or recompile the library for ARM architecture.
This wiki is a community–driven documentation page. If you want to request a topic for this wiki to address or discuss its content, head over to issue.
Build
Generate
Compile Generated Code
- Compile Generated Code
- [AquaCluster]
- [CUDA]
- [OMP]
- [MPI]
- [Linux]
- [CUDA]
- [OMP]
- [MPI]
- [MacOS]
- [CUDA]
- [OMP]
- MPI
- [Windows]
- [CUDA]
- [OMP]
- [MPI]