Coder Social home page Coder Social logo

Comments (6)

kumasento avatar kumasento commented on August 16, 2024

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.

tissue3 avatar tissue3 commented on August 16, 2024

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.

wsmoses avatar wsmoses commented on August 16, 2024

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.

tissue3 avatar tissue3 commented on August 16, 2024

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.

wsmoses avatar wsmoses commented on August 16, 2024

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.

wsmoses avatar wsmoses commented on August 16, 2024

Also since it appears this issue has been resolved, closing for now.

from polygeist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.