Comments (6)
Not sure if that would work but perhaps you could try replacing
../mlir-clang/Test/polybench/utilities/polybench.h
with
-I=../mlir-clang/Test/polybench/utilities
from polygeist.
Not sure if that would work but perhaps you could try replacing
../mlir-clang/Test/polybench/utilities/polybench.h
with
-I=../mlir-clang/Test/polybench/utilities
Same error, complaining 'polybench.h' file not found
.
from polygeist.
I think the correct include directory syntax is as follows:
-I ../mlir-clang/Test/polybench/utilities
Also if it's helpful the polybench suite is compiled and run when running make check-mlir-clang
. This shows the command needed to run the suite (see here for example: https://github.com/wsmoses/Polygeist/blob/main/mlir-clang/Test/polybench/linear-algebra/blas/gemm/gemm.c ). Unfortunately this includes various environmental variables whose expansion may not be obvious. In my opinion the easiest way to see the full command is to add a failing check, which will result in the full command being output as an error. For example adding ; CHECK: not-in-file
to the relevant C file.
from polygeist.
I think the correct include directory syntax is as follows:
-I ../mlir-clang/Test/polybench/utilities
Also if it's helpful the polybench suite is compiled and run when running
make check-mlir-clang
. This shows the command needed to run the suite (see here for example: https://github.com/wsmoses/Polygeist/blob/main/mlir-clang/Test/polybench/linear-algebra/blas/gemm/gemm.c ). Unfortunately this includes various environmental variables whose expansion may not be obvious. In my opinion the easiest way to see the full command is to add a failing check, which will result in the full command being output as an error. For example adding; CHECK: not-in-file
to the relevant C file.
The include syntax makes things work, thanks!
I also wonder if you are generating GPU dialects from CUDA. (EmitGPUCallExpr
in mlir-clang/Lib/clang-mlir.cc seems to generate GPU dialect?) If so, can you provide some instructs to run it? Or some example outputs are good. I want to understand the input and expected outputs.
from polygeist.
The GPU support is in progress so the specification is a bit in flux, if you're interested feel free to email me ([email protected]) and I'd be happy to talk more about plans/etc.
from polygeist.
Also since it appears this issue has been resolved, closing for now.
from polygeist.
Related Issues (20)
- Cgeist outputs something strange HOT 6
- How to run PolyBench/C benchmarks with polyhedral pluto optimization using Polygeist? HOT 3
- [Bug] Incorrect scf.for code is generated
- Sign extension not properly propagated to users HOT 2
- declared char constants emit higher bit-width MLIR constants HOT 3
- linker error with cgeist on C++ code HOT 2
- make[1]: *** No rule to make target 'install'. Stop. make: *** [Makefile:555: install-recursive] Error 1 CMake Error at tools/polymer/CMakeLists.txt:28 (execute_process): execute_process failed command indexes: 1: "Child return code: 2" HOT 1
- support for Cuda 12.1 HOT 11
- Incorrect execution result of running CUDA to OpenMP compilation? HOT 1
- Error compiling code with Polygeist: 'affine.for' op operand cannot be used as a symbol
- [bug] Operations such as "|=", "&=" and "^=" lack necessary implicit type conversions
- opaque attribute handling issues
- error when trying to lower .cu file, should I report this here or on LLVM repo issues?
- Problems about fp_16 in CUDA, as half, __hmul.......etc HOT 1
- Is it possible to take MLIR generated by CUDA-to-CPU flow to the cpu-openmp executable? HOT 1
- Add Support for Additional Math Operations in Polygeist
- gitignore bug
- Polymer with -reg2mem -pluto-opt generates IR with out-of-bounds accesses for imperfectly nested loops
- When a class is deleted, the user-defined destructor is not invoked. HOT 3
- Runtime error after compiling CUDA programs using cgeist HOT 2
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 polygeist.