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

Define const member function if needed #37

Merged
merged 1 commit into from
May 4, 2016
Merged

Conversation

facao
Copy link
Contributor

@facao facao commented Apr 22, 2016

We define void* as the handle of i.e. queue, device, etc. And internally, it is a pointer to class member.

  1. We will expose class member to outside, but good news is, we expose void*, and does not expose its data type.
  2. Make it hard to define getter method to const, because it also needs to declare the return value to be const too, then, cast from "a pointer to a constant member" to void*, which will also request const_cast.

In this change, only change what is easy, and for others, we may need to change the architect, which is not expected I believe.

@whchung
Copy link
Collaborator

whchung commented Apr 22, 2016

@facao in order to ensure integrity of the compiler, could you help provide result of:

  • HCC_RUNTIME=HSA make test
  • HIP uni test results

@whchung
Copy link
Collaborator

whchung commented Apr 28, 2016

@facao any updates on this?

@whchung
Copy link
Collaborator

whchung commented May 4, 2016

@facao I'll take this pull request without test results as it does seem harmless. But for API changes I would generally ask for:

  • result of HCC unit tests "HCC_RUNTIME=HSA make test"
  • result of HIP unit tests

You can refer to other pull requests for more examples.

@whchung whchung merged commit 1151ec0 into ROCm:hsa_pool_api May 4, 2016
@facao
Copy link
Contributor Author

facao commented May 4, 2016

I will make up the Unit tests asap later, my local system is occupied fully recently.

@yan-ming
Copy link
Contributor

yan-ming commented May 5, 2016

Hi @facao , this PR doesn't seem to be smooth on my end, could you verify my failings on your system?

I'm on 836266.

********************
Testing Time: 634.12s
********************
Failing Tests (29):
    CPPAMP :: Unit/AmpShortVectors/hc_short_vector_device.cpp
    CPPAMP :: Unit/GridLaunch/accelerator_view.cpp
    CPPAMP :: Unit/GridLaunch/char_argument.cpp
    CPPAMP :: Unit/GridLaunch/completion_future.cpp
    CPPAMP :: Unit/GridLaunch/customtype_byptr.cpp
    CPPAMP :: Unit/GridLaunch/customtype_byval.cpp
    CPPAMP :: Unit/GridLaunch/customtype_byval_char.cpp
    CPPAMP :: Unit/GridLaunch/glp_const.cpp
    CPPAMP :: Unit/GridLaunch/glp_typedef.cpp
    CPPAMP :: Unit/GridLaunch/hc_attr.cpp
    CPPAMP :: Unit/GridLaunch/linkobj.cpp
    CPPAMP :: Unit/GridLaunch/rect_tiles.cpp
    CPPAMP :: Unit/GridLaunch/union.cpp
    CPPAMP :: Unit/HC/memcpy_symbol1.cpp
    CPPAMP :: Unit/HC/memcpy_symbol3.cpp
    CPPAMP :: Unit/HC/placement_new.cpp
    CPPAMP :: Unit/HC/test1.cpp
    CPPAMP :: Unit/HC/test3.cpp
    CPPAMP :: Unit/HC/test4.cpp
    CPPAMP :: Unit/HC/test7.cpp
    CPPAMP :: Unit/HC/test8.cpp
    CPPAMP :: Unit/HC/tick2.cpp
    CPPAMP :: Unit/HC/wg_size.cpp
    CPPAMP :: Unit/HSA/printf.cpp
    CPPAMP :: Unit/HSAIL/shfl_xor.cpp
    CPPAMP :: Unit/Pool/map_to_peers_device_ptr.cpp
    CPPAMP :: Unit/Pool/map_to_peers_host_ptr.cpp
    CPPAMP :: Unit/SharedLibrary/shared_library2.cpp
    CPPAMP :: Unit/SharedLibrary/shared_library3.cpp

  Expected Passes    : 642
  Expected Failures  : 25
  Unsupported Tests  : 10
  Unexpected Failures: 29

@whchung
Copy link
Collaborator

whchung commented May 5, 2016

@yan-ming Yes, I noticed this too. HIP tests are also failing on my side. I've reverted commits from this PR.

@facao
Copy link
Contributor Author

facao commented May 5, 2016

@yan-ming @whchung there is a header added by mistake in hc.hpp I think, will pull an new request after verifying with Unit/HIP tests. BTW, which branch you are working on? I even got Unit test error without the change.

@whchung
Copy link
Collaborator

whchung commented May 5, 2016

@facao I'm using develop branch, and with HSAIL backend. On LC backend I can still see some more failed cases which still need to be addressed.

@yan-ming
Copy link
Contributor

yan-ming commented May 5, 2016

@facao I was on 8362669 where the merge point of this PR and develop branch.

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