-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from marty1885/master
Add more documentations
- Loading branch information
Showing
7 changed files
with
55 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Building on Linux | ||
|
||
Building Etaler on Linux should be easy as it is mainly developed on Linux. | ||
|
||
## Using Docker | ||
|
||
Etaler's repo ships with a Docerfile in the `.devcontainer` directory. You can copy the file into the docker folder and utilize docker for an easy build. | ||
|
||
```shell | ||
cd Etaler/docker | ||
cp ../.devcontainer/Dockerfile . | ||
# Build the library | ||
docker -D build --tag etaler:latest . | ||
# Run the container | ||
docker run --rm -it -e DISPLAY=:0 --cap-add=SYS_PTRACE --mount source=etaler-volume,target=/home etaler:latest | ||
``` | ||
|
||
## Building locally | ||
|
||
If you are like me - want to use the library locally on the system and/or want to deploy it to an embedded system, Docker may not be an option for you. No worries, building locally is also very easy. | ||
|
||
Here I show how to setup your system. You'll need to adapt the code if you are not using Arch Linux. | ||
|
||
### Installing dependency | ||
|
||
```shell | ||
sudo pacman -S gcc cmake catch2 cereal intel-tbb opencl-headers | ||
``` | ||
|
||
### Clone and build | ||
|
||
```shell | ||
git clone https://github.com/Etaler/Etaler --recursive | ||
cd Etaler | ||
mkdir build && cd build | ||
cmake .. | ||
make -j4 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters