Skip to content

Fix openglcompute app#1679

Merged
abadams merged 1 commit into
masterfrom
fix_openglcompute_app
Dec 13, 2016
Merged

Fix openglcompute app#1679
abadams merged 1 commit into
masterfrom
fix_openglcompute_app

Conversation

@abadams

@abadams abadams commented Dec 13, 2016

Copy link
Copy Markdown
Member

Made it use Halide::Buffer.

While doing this I discovered that the vector support in OpenGLCompute
codegen was broken, and made a dangerous assumption anyway (all vector
access is aligned), so I neutered it for now. It needs a pass that
actually detects if all buffer access is aligned dense vectors, and if
so, declares the buffer as an array of vectors.

Made it use Halide::Buffer.

While doing this I discovered that the vector support in OpenGLCompute
codegen was broken, and made a dangerous assumption anyway (all vector
access is aligned), so I neutered it for now. It needs a pass that
actually detects if all buffer access is aligned dense vectors, and if
so, declares the buffer as an array of vectors.
@steven-johnson

Copy link
Copy Markdown
Contributor

LGTM. Probably should open an issue re the vector alignment wrongness so it doesn't get forgotten.

@@ -1,15 +1,17 @@
CXX-host ?= c++
CXX-arm-64-android ?= $(ANDROID_NDK_HOME)/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-c++

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intend to commit the changes to the simd_op_check makefile on this branch?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I did not.

@abadams abadams merged commit e9d4b85 into master Dec 13, 2016
@abadams abadams deleted the fix_openglcompute_app branch April 20, 2017 01:37
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

Successfully merging this pull request may close these issues.

3 participants