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

Use the correct library name for rocclr #2103

Closed
wants to merge 4 commits into from
Closed

Conversation

pfultz2
Copy link
Contributor

@pfultz2 pfultz2 commented Jun 11, 2020

No description provided.

@pfultz2 pfultz2 requested a review from mangupta June 11, 2020 18:29
@mangupta
Copy link
Contributor

This needs to go to internal development branch. Please resubmit there. Closing this PR.

@mangupta mangupta closed this Jun 15, 2020
@pfultz2
Copy link
Contributor Author

pfultz2 commented Jun 16, 2020

@mangupta Which branch do I submit a PR to? And why did you close this instead of just changing the base branch?

@pfultz2 pfultz2 reopened this Jun 16, 2020
@gargrahul
Copy link
Contributor

@pfultz2
Copy link
Contributor Author

pfultz2 commented Jun 16, 2020

That branch doesn't build. I get this error when configuring:

CMake Error at tests/hit/HIT.cmake:374 (add_custom_target):
  add_custom_target cannot create target "directed_tests.gcc.hipMalloc"
  because another target with the same name already exists.  The existing
  target is a custom target created in source directory
  "/usr/local/cget/build/tmp-318339e40b0a49c99fb316685aea07e1/HIP-roc-3.5.x".
  See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  tests/hit/HIT.cmake:452 (hit_add_files)
  tests/hit/HIT.cmake:457 (hit_add_directory_recursive)
  CMakeLists.txt:660 (hit_add_directory_recursive)

It seems like something is wrong with the configuring the tests.

@gargrahul
Copy link
Contributor

That branch doesn't build. I get this error when configuring:

CMake Error at tests/hit/HIT.cmake:374 (add_custom_target):
  add_custom_target cannot create target "directed_tests.gcc.hipMalloc"
  because another target with the same name already exists.  The existing
  target is a custom target created in source directory
  "/usr/local/cget/build/tmp-318339e40b0a49c99fb316685aea07e1/HIP-roc-3.5.x".
  See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  tests/hit/HIT.cmake:452 (hit_add_files)
  tests/hit/HIT.cmake:457 (hit_add_directory_recursive)
  CMakeLists.txt:660 (hit_add_directory_recursive)

It seems like something is wrong with the configuring the tests.

Are instructions available at #2104 (comment) not working for you ?

@pfultz2
Copy link
Contributor Author

pfultz2 commented Jun 16, 2020

Are instructions available at #2104 (comment) not working for you ?

I am installing it with cget install ROCm-Developer-Tools/[email protected] -DHIP_PLATFORM=vdi -DHIP_COMPILER=clang(hcc-based version work with cget), which uses standard cmake commands(ie cmake -DCMAKE_PREFIX_PATH=$PREFIX ..;make;make install) to install. If hip doesn't work with standard cmake commands then the build scripts should be fixed.

I dont pass in the build directory to rocclr since the build directory has already been deleted(if files are needed by downstream components then they should be installed). Also, cget takes care of setting the CMAKE_PREFIX_PATH so custom variables like ROCclr_DIR should not be necessary.

We need to be able to build hip using standard cmake(via cget or CMakeGet) so we can can move our CI to test with hip-clang instead of hcc. With this PR and this one in rocclr, we can build hip-clang, although with some workarounds for the broken installation of opencl headers(hopefully this can be fixed in the future as well).

@mangupta
Copy link
Contributor

@pfultz2 The master branch was used for hip-hcc runtime development. Whereas the new runtime is developed in the internal branch. Hence master branch should be treated as deprecated. As of now only the release branch is pushed to github (after the release is done). So if this change is needed, it needs to go to the internal branch.

@mangupta mangupta closed this Jun 17, 2020
@pfultz2
Copy link
Contributor Author

pfultz2 commented Jun 17, 2020

The master branch was used for hip-hcc runtime development.

Which is the only branch that builds, unfortunately. The release branch doesn't work.

Whereas the new runtime is developed in the internal branch. Hence master branch should be treated as deprecated. As of now only the release branch is pushed to github (after the release is done). So if this change is needed, it needs to go to the internal branch.

So I take that to mean that hip no longer accepts open source contributions? Can we update CONTRIBUTING.md or the readme to say that?

@mangupta mangupta deleted the rocclr-lib-name branch January 22, 2021 07:55
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.

3 participants