Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building 02-GeneralArrayOperations #4

Open
barbarian1803 opened this issue Nov 24, 2023 · 0 comments
Open

Error when building 02-GeneralArrayOperations #4

barbarian1803 opened this issue Nov 24, 2023 · 0 comments

Comments

@barbarian1803
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant