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

Sanity check for OpenCL Library #65

Merged
merged 3 commits into from
Sep 16, 2018
Merged

Sanity check for OpenCL Library #65

merged 3 commits into from
Sep 16, 2018

Conversation

furuame
Copy link
Member

@furuame furuame commented Sep 2, 2018

No description provided.

@furuame furuame requested a review from jserv September 2, 2018 13:37
mk/opencl.mk Outdated
OPENCL_LIB ?= /usr/local/cuda-9.1/lib64
OPENCL_LIB_PATH ?= /usr/local/cuda/lib64

OPENCL_LIB := $(shell test -d $(OPENCL_LIB_PATH); echo $$?)
Copy link
Member

Choose a reason for hiding this comment

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

Can you validate some critical headers as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Which headers do you refer? Something like CL/cl.h in this case?

Copy link
Member

@jserv jserv Sep 2, 2018

Choose a reason for hiding this comment

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

Users might specify other OpenCL implementation rather than the one shipped by NVIDIA SDK. Take Beignet for example, it is an implementation dedicated to Intel Graphics and suitable for CI purpose. However, it is hard for current scripts to detect its availability.

Copy link
Member Author

Choose a reason for hiding this comment

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

I would give it a try.

Copy link
Member Author

@furuame furuame Sep 16, 2018

Choose a reason for hiding this comment

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

The availability of Beignet should be included in another issue #69.

mk/opencl.mk Outdated
LDFLAGS += -L$(OPENCL_LIB) -lOpenCL
-I$(OPENCL_LIB_PATH)/../include

LDFLAGS += -L$(OPENCL_LIB_PATH) -lOpenCL
Copy link
Member

Choose a reason for hiding this comment

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

Before assigning $(LDFLAGS), we shall ensure the presence of OpenCL runtime library in advance.

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean check the presence of libOpenCL.so ?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, exactly.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

@jserv jserv requested a review from marktwtn September 13, 2018 06:36
@jserv
Copy link
Member

jserv commented Sep 13, 2018

@marktwtn, Be aware of the availbility of Intel OpenCL driver which might be required by Travis-CI.

@jserv
Copy link
Member

jserv commented Sep 15, 2018

Related: #69

@furuame
Copy link
Member Author

furuame commented Sep 16, 2018

@jserv Should the OpenCL sanity check include the Travis-CI coverage?

@jserv
Copy link
Member

jserv commented Sep 16, 2018

@jserv Should the OpenCL sanity check include the Travis-CI coverage?

CI changes could be addressed in another pull request. Let's concentrate on OpenCL validation here.

@jserv jserv merged commit 30657a6 into dev Sep 16, 2018
@furuame furuame deleted the opencl-sanity-check branch September 16, 2018 04:27
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.

2 participants