-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL][DOC] Update docs to reflect devicelib change #1368
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
Conversation
@hiaselhans Please, sign-off you commit(git commit -s) |
e97c6f7
to
9d092eb
Compare
describe the use of buildbot scripts in GetStartedGuide.md * use configure.py and compile.py * describe common flags * remove unacessible opencl-aot flags (->enabled by default) * add cross reference to buildbot configuration script * set DPCPP_HOME to ~/sycl_workspace in unix Signed-off-by: hiaselhans <simon.klemenc@gmail.com>
okay, thanks @bader for your feedback, i updated the docs to use the buildbot scripts. question i have:
|
I think you laid it out perfectly. It might be useful to enable this option by default, but in this case I would not advice users to add this option, but rather change the script. I think it should be done in a separate PR. Does it sound reasonable?
Looks good to me, although I haven't tried it neither. :-) Thanks a lot for working on this! |
mkdir %DPCPP_HOME%\build | ||
cd %DPCPP_HOME%\build | ||
python %DPCPP_HOME%\llvm\buildbot\configure.py -s %DPCPP_HOME%\llvm -o %DPCPP_HOME%\build -t release | ||
python %DPCPP_HOME%\llvm\buildbot\compile.py -s %DPCPP_HOME%\llvm -o %DPCPP_HOME%\build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need a particular python version? Does it work with python3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i never tried on windows, but in my linux python3 is default and works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ruyk @hiaselhans I don't see anything version-specific in those scripts. I believe both versions are supported. And they definitely work with Python 3, as it's part of CI pipeline.
sycl/doc/GetStartedGuide.md
Outdated
-DLLVM_EXTERNAL_SYCL_SOURCE_DIR=$DPCPP_HOME/llvm/sycl \ | ||
-DLLVM_EXTERNAL_LLVM_SPIRV_SOURCE_DIR=$DPCPP_HOME/llvm/llvm-spirv \ | ||
$DPCPP_HOME/llvm/llvm | ||
In case you want to configure Cmake manually the up-to-date reference for variables is in these files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case you want to configure Cmake manually the up-to-date reference for variables is in these files. | |
In case you want to configure CMake manually the up-to-date reference for variables is in these files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
sycl/doc/GetStartedGuide.md
Outdated
@@ -36,11 +36,16 @@ Throughout this document `DPCPP_HOME` denotes the path to the local directory | |||
created as DPC++ workspace. It might be useful to create an environment variable | |||
with the same name. | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this space?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
accidential, fixed it :)
Well, thanks for the comments,
better to open a seperate issue and pr for this? |
I suggest handling this issues separately. |
@@ -55,55 +59,49 @@ Open a developer command prompt using one of two methods: | |||
```bat | |||
set DPCPP_HOME=%USERPROFILE%\sycl_workspace | |||
mkdir %DPCPP_HOME% | |||
cd %DPCPP_HOME% | |||
|
|||
git clone https://github.com/intel/llvm -b sycl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we really want to do this. But shallow clone would dramatically decrease download times for those who just want's to build the latest version (instead of working on new features/bugfixes).
git clone https://github.com/intel/llvm -b sycl | |
git clone --depth 1 https://github.com/intel/llvm -b sycl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
in sycl/doc/GetStartedGuide.md