Comments (5)
@u-rox23 apologies for the delay. This approach of building is not often used and has changed in when LLVM moved to the "LLVM monorepo". Alternatively, you can build it by cloning clad in a separate folder and pass -DLLVM_DIR=path/to/llvm/inst
from clad.
Thanks @vgvassilev, building it separately fixed the issue for me. Resolving, thanks again for the help!
from clad.
Reopening the issue due to another failure I'm facing. The cmake build and install was successful, however the tests failed following the below command:
make check-clad
Below is one of the failure reason:
Script:
--
: 'RUN: at line 1'; /home/rox/Desktop/clad-dev/inst/bin/clang++ -DCLAD_NO_NUM_DIFF -std=c++11 -Xclang -add-plugin -Xclang clad -Xclang -plugin-arg-clad -Xclang -fdump-derived-fn -Xclang -load -Xclang /home/rox/Desktop/clad-dev/clad_obj/./lib/clad.so /home/rox/Desktop/clad-dev/clad/test/ROOT/Interface.C -I/home/rox/Desktop/clad-dev/clad/test/ROOT/../../include -oInterface.out 2>&1 | /home/rox/Desktop/clad-dev/inst/bin/FileCheck /home/rox/Desktop/clad-dev/clad/test/ROOT/Interface.C
: 'RUN: at line 2'; ./Interface.out | /home/rox/Desktop/clad-dev/inst/bin/FileCheck -check-prefix=CHECK-EXEC /home/rox/Desktop/clad-dev/clad/test/ROOT/Interface.C
: 'RUN: at line 3'; /home/rox/Desktop/clad-dev/inst/bin/clang++ -DCLAD_NO_NUM_DIFF -std=c++11 -Xclang -add-plugin -Xclang clad -Xclang -plugin-arg-clad -Xclang -fdump-derived-fn -Xclang -load -Xclang /home/rox/Desktop/clad-dev/clad_obj/./lib/clad.so -Xclang -plugin-arg-clad -Xclang -enable-tbr /home/rox/Desktop/clad-dev/clad/test/ROOT/Interface.C -I/home/rox/Desktop/clad-dev/clad/test/ROOT/../../include -oInterface.out
: 'RUN: at line 4'; ./Interface.out | /home/rox/Desktop/clad-dev/inst/bin/FileCheck -check-prefix=CHECK-EXEC /home/rox/Desktop/clad-dev/clad/test/ROOT/Interface.C
--
Exit Code: 127
Command Output (stderr):
--
/home/rox/Desktop/clad-dev/clad_obj/test/ROOT/Output/Interface.C.script: line 1: /home/rox/Desktop/clad-dev/inst/bin/FileCheck: No such file or directory
--
Could anyone please provide any help here?
from clad.
@u-rox23 - It seems like the LLVM FileCheck
utility is missing. You can do the following to get your tests working:
- Ensure that your source has the FileCheck utility present for your LLVM version (in
/llvm/utils/
), ideally if you are using anything above 3.x it should be present in that specified path. If it doesn't exist, consider upgrading your LLVM version to a latest release. - If it exists, check if you had the
-DLLVM_INSTALL_UTILS=ON
flag in you cmake command. (As of March 08, 2016 auxiliary utilities are not built by default.)
from clad.
We should update our documentation to capture the suggested build process for developer builds.
from clad.
Related Issues (20)
- Remove the assert on AppendDelayed
- Custom derivatives are not detected and used correctly when namespaces are present.
- Add custom derivatives for all math and other std:: builtin functions
- Add a target for verifying only `CHECK-EXEC` in tests
- Missing derivative with globals / variables of static storage duration HOT 5
- Non-compilable code output for division operation in reverse mode
- Incorrect gradient computation for non-zeroed derivatives HOT 4
- Regression in support of functions with unknown definition HOT 4
- Incorrect gradient for if-conditions with side-effects
- Non-differentiable attribute not being applied to nested classes
- Add support for differentiating the null (empty) statement `;`
- Two functions HOT 9
- Incorrect type of zero returned in VisitCallExpr HOT 1
- Add support for the logical negation operator in conditions (forward mode)
- Add support for comparison operators with differentiable substatements in for loop conditions (forward mode)
- Incorrect derivative for while-loops with declarations and assignments in forward mode
- Incorrect derivative for if-statements with assignments in forward mode HOT 5
- Trying to differentiate an operator in reverse mode fails. HOT 2
- Regression in `clad` master in dealing with templated functions HOT 2
- Regression in Clad when dealing with loops HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clad.