Skip to content

Add Half library to third_party - #3897

Merged
ThomasRaoux merged 3 commits into
iree-org:mainfrom
ThomasRaoux:half_lib
Nov 18, 2020
Merged

ThomasRaoux merged 3 commits into
iree-org:mainfrom
ThomasRaoux:half_lib

Conversation

@ThomasRaoux

@ThomasRaoux ThomasRaoux commented Nov 18, 2020 •

Copy link
Copy Markdown
Contributor

Add half library to be able to use it for conversion between half and float in iree tools.

@benvanik benvanik left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think I missed the part of the convo earlier - this has no git repo at all anywhere? If it does this should be a submodule. Otherwise, if it's like one file out of a 10000k file project then it's ok to clone in here, but we need to include updating instructions/shell script that fetches a new version (like UPDATING.md or update.sh, etc)

(these are the same rules we have internally in //third_party - knowing where a file came from and how to update it is very very useful :)

@benvanik

Copy link
Copy Markdown
Collaborator

(and to clarify, that updating script doesn't need to be heavyweight - it could literally be curl https://raw.githubusercontent.com/whoever/project/master/half.hpp > half.hpp)

@ThomasRaoux

Copy link
Copy Markdown
Contributor Author

I think I missed the part of the convo earlier - this has no git repo at all anywhere? If it does this should be a submodule. Otherwise, if it's like one file out of a 10000k file project then it's ok to clone in here, but we need to include updating instructions/shell script that fetches a new version (like UPDATING.md or update.sh, etc)

(these are the same rules we have internally in //third_party - knowing where a file came from and how to update it is very very useful :)

It comes from sourceforge and is in an svn repo so I cannot make it a submodule. I added a file UPDATING.md with information on how to update this project.

@ThomasRaoux
ThomasRaoux requested a review from benvanik November 18, 2020 07:50

@benvanik benvanik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

(sourceforge... now there's a name I haven't heard in awhile :)

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@GMNGeoffrey GMNGeoffrey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

format check is failing despite

https://github.com/google/iree/blob/347d5c49321def2bcfc8252f3057afead9341b68/third_party/.clang-format#L15-L16

@GMNGeoffrey ?

😠 I'll try to debug. Best guess is that git-clang-format targets individual files and so ignores the part of the style file that says to ignore third_party.


This can be updated by running:
```shell
curl http://svn.code.sf.net/p/half/code/trunk/include/half.hpp > half.hpp

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should be updating the license and README as well, I think

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

@ThomasRaoux
ThomasRaoux merged commit 543d7fb into iree-org:main Nov 18, 2020
@ThomasRaoux
ThomasRaoux deleted the half_lib branch February 16, 2021 23:43
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.

4 participants