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

CLPlatform self-assignment #2763

Open
piotrrak opened this issue Oct 21, 2024 · 2 comments
Open

CLPlatform self-assignment #2763

piotrrak opened this issue Oct 21, 2024 · 2 comments

Comments

@piotrrak
Copy link

piotrrak commented Oct 21, 2024

Hello,

Noticed this issue by reviewing the code.

That's surely a bug:

platform_id_ = platform_id_;

platform_ = platform_;
Results in not initializing platform_ member field with platforms[0] as I suppose was intended.

Currently clang build doesn't work and I am planning to enable it for the project (at-very least for x86-64).
The reason is that clang has '-Wself-assignment' option and will be able catch typos like those.

I have not learned how to run test suit for OpenCL yet. Does the CI run any of the OpenCL tests to degree I can put my faith into?

Cheers
/P

@taos-ci
Copy link
Collaborator

taos-ci commented Oct 21, 2024

:octocat: cibot: Thank you for posting issue #2763. The person in charge will reply soon.

@DonghakPark
Copy link
Member

Hello @piotrrak

in our github CI, you can see the build option at .github/workflows/ubuntu_clean_meson_build.yml

        meson \
          --buildtype=plain \
          --prefix=/usr \
          --sysconfdir=/etc \
          --libdir=lib/x86_64-linux-gnu \
          --bindir=lib/nntrainer/bin \
          --includedir=include \
          -Dinstall-app=true \
          -Dreduce-tolerance=false \
          -Denable-debug=true \
          -Dml-api-support=enabled \
          -Denable-nnstreamer-tensor-filter=enabled \
          -Denable-nnstreamer-tensor-trainer=enabled \
          -Denable-nnstreamer-backbone=true \
          -Dcapi-ml-common-actual=capi-ml-common \
          -Dcapi-ml-inference-actual=capi-ml-inference \
          -Denable-capi=enabled \
          ${{ matrix.meson_options }} \

It seems that the 'enable-opencl' build option is missing from the currently running CI, indicating that testing may not be taking place in GitAction.

If you have tested it locally without any issues, I will update the CI.

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

3 participants