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

Add get_info<Info>() specializations #172

Closed
wants to merge 11 commits into from
Closed

Conversation

kylelutz
Copy link
Collaborator

@kylelutz kylelutz commented Jul 3, 2014

No description provided.

This adds a compile-time check for non-padded structs in the
BOOST_COMPUTE_ADAPT_STRUCT() macro. Also updates the macro to
add "__attribute__((packed))" to the OpenCL struct definition.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling dd62500 on get-info-specializations into bfe2bdd on master.

This fixes errors caused when handling OpenCL platforms with
no devices. Now the platform::devices() method will properly
return an empty vector without throwing an exception when such
a platform is encountered.

Previously, default_device() would throw an exception when
confronted with a platform with no devices even if devices
from other platforms on the system were available.

Thanks to Godeffroy Valet for reporting this issue.
Add compile() and link() methods to program
Add check for packed structs in BOOST_COMPUTE_ADAPT_STRUCT()
…rnels

Add program::create_with_built_in_kernels() method
Fix errors when using platforms with no devices
@kylelutz
Copy link
Collaborator Author

kylelutz commented Jul 8, 2014

See PR #176

@kylelutz kylelutz closed this Jul 8, 2014
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0%) when pulling c13dea9 on get-info-specializations into bfe2bdd on master.

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.

None yet

2 participants