If it is needed to pass the same option from driver to both host and device compilers, then it must be added two-times - see clang/lib/Driver/ToolChains/Clang.cpp, for example:
4124:CmdArgs.push_back("-fsycl");
...
6150:CmdArgs.push_back("-fsycl");
This is quite error prone and inconvenient - should be automated: option placed in one place, driver does the duplication itself.
Currently, I have been updating the API docs for dpctl by manually generating and pushing the documents to the gh-pages branch. The steps that I use are:
Step 1
git checkout master
cd docs
mkdir build
cd build
cmake -DDPCTL_DOCGEN_PREFIX=<Some location out of tree>
make Sphinx
Step 2
git clean -dfx
git checkout gh-pages
git rm -rf *
mv <Location where docs w
If it is needed to pass the same option from driver to both host and device compilers, then it must be added two-times - see
clang/lib/Driver/ToolChains/Clang.cpp, for example:4124:
CmdArgs.push_back("-fsycl");...
6150:
CmdArgs.push_back("-fsycl");This is quite error prone and inconvenient - should be automated: option placed in one place, driver does the duplication itself.