Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Revisions to wrappers pt 1 #29

Merged
merged 15 commits into from Apr 19, 2020
Merged

Revisions to wrappers pt 1 #29

merged 15 commits into from Apr 19, 2020

Conversation

wsphillips
Copy link
Contributor

This draft is the first in a sequence of hygeine revisions planned to make HSARuntime.jl more easily debugged and readable, as well as making our wrappers more consistent with changes that have accumulated over time in the HSA C API.

I regenerated wrappers using a more recent version of the HSA headers, automating (most) of the heavy lifting. Aside from naming convention changes, this revision packs everything in the HSA C api into a sumodule HSA. Therefore, there's a clear boundary between high-level functions we create and what's pulling from C. Low-level function wrappers are now more strictly typed. The exported API remains unchanged. This passes tests locally and with some minor tweaks to AMDGPUnative, the compiler is happy too.

Copy link
Member

@jpsamaroo jpsamaroo left a comment

Choose a reason for hiding this comment

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

This all looks great! We should bump the minor version as well, as good practice.

gen/generator.jl Show resolved Hide resolved
gen/genoutput/libhsa_api.jl Outdated Show resolved Hide resolved
src/extras.jl Outdated Show resolved Hide resolved
src/extras.jl Outdated Show resolved Hide resolved
src/extras.jl Show resolved Hide resolved
@jpsamaroo jpsamaroo marked this pull request as ready for review April 19, 2020 14:37
@jpsamaroo
Copy link
Member

Not sure what's up with CI; let's give it a kick.

@jpsamaroo jpsamaroo closed this Apr 19, 2020
@jpsamaroo jpsamaroo reopened this Apr 19, 2020
@jpsamaroo
Copy link
Member

I'll merge this now so we can get the matching AMDGPUnative PR tests going, and then correct any issues after the fact.

@jpsamaroo jpsamaroo merged commit bdda3bd into master Apr 19, 2020
@jpsamaroo
Copy link
Member

Thanks!

@wsphillips wsphillips deleted the wsp/wrapremix2 branch April 19, 2020 20:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants