Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Conan to manage building Orochi and other dependencies. #12

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,29 @@ You need an AMDGPU driver newer than 21.40. However, we recommend using 21.50 or
- The header and the library which you need to download from [HIP RT prject page](https://gpuopen.com/hiprt/).
- [tutorials](tutorials)
- Tutorial source code
- [contrib](contrib)
- External dependencies


## Building the Tutorial

1. First you need to clone the repository, then init and update the submodules if you didn't clone with `--recursive`:

1. First you need to get the dependencies. Use [Conan](https://conan.io/) to fetch and build them for you.
- Fetch and build Orochi:
````
cd orochi_recipe
conan create .
````
- Go to the root directory and configure the dependencies for the tutorial:
````
git submodule init
git submodule update
mkdir build
cd build
conan install .. -s compiler.cppstd=17 --build missing
````
2. Download the HIP RT SDK from [HIP RT prject page](https://gpuopen.com/hiprt/), copy hiprt directory to here.

3. Run premake like this on Windows, which will generate a solution for Visual Studio 2019:

````
cd tutorials
../tools/premake5/win/premake5.exe vs2019
../tools/premake5/win/premake5.exe vs2022
````

4. Open the solution, compile & run. These tutorials are made to run on both AMD and NVIDIA by specifying the device index.
Expand Down
7 changes: 7 additions & 0 deletions conanfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[requires]
stb/cci.20210910
tinyobjloader/1.0.6
orochi/1.00
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I configured it to use version 1.00 by default.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please let me know if I should target Orochi's master branch instead.


[generators]
premake
1 change: 0 additions & 1 deletion contrib/Orochi
Submodule Orochi deleted from c5d393
Loading