Code Monkey home page Code Monkey logo

m1-gpu-cpp's People

Contributors

larsgeb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

m1-gpu-cpp's Issues

Error when building 02-GeneralArrayOperations

Got this error when building 02-General Array Operations:

Executing task: xcrun -sdk macosx metal -c ~/m1-gpu-cpp/02-GeneralArrayOperations/ops.metal -o ~/m1-gpu-cpp/02-GeneralArrayOperations/ops.air

~/m1-gpu-cpp/02-GeneralArrayOperations/ops.metal:52:13: error: kernel function cannot have input declarations with 'thread_execution_width' and 'threads_per_simdgroup' attributes
kernel void inspector(
^
~/m1-gpu-cpp/02-GeneralArrayOperations/ops.metal:67:24: note: conflicting declaration with 'thread_execution_width' attribute here
uint thread_execution_width [[thread_execution_width]],
^
~/m1-gpu-cpp/02-GeneralArrayOperations/ops.metal:74:24: note: conflicting declaration with 'threads_per_simdgroup' attribute here
uint threads_per_simdgroup [[threads_per_simdgroup]],
^
1 error generated.

Build ok, but execution failed

I was able to build the project, but I got the error below during the execution, do you know why?

2023-05-28 13:17:47.203280+0200 test_cpp[75480:1219121] Metal GPU Frame Capture Enabled
2023-05-28 13:17:47.203665+0200 test_cpp[75480:1219121] Metal API Validation Enabled
Failed to find the default library.
Assertion failed: (commandBuffer != nullptr), function sendComputeCommand, file MetalAdder.cpp, line 79.
(lldb) 
Screenshot 2023-05-28 at 13 22 46 Screenshot 2023-05-28 at 13 22 06 Screenshot 2023-05-28 at 13 19 36

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.