EXSWHTEC-109 - Implement tests for the hipModuleLoad family of APIs and hipModuleUnload - #20
music-dino wants to merge 22 commits into
Conversation
Change-Id: I66f0c09e9c7405ec7430b1883e0e89542fdb87a0
Change-Id: I212b82b1b3a78a368b85ea64e338371a34b405f9
Change-Id: Ib455f72b5be77e1a81137d15c07ea41161b16a3e
Change-Id: Ief96e274f4143e80ceb3e40f04d38ae217777583
Change-Id: I9c03cde09b42c8e3726153c2a177359efc8d6d29
…nd hipModuleUnload - Basic positive tests - Negative parameter tests
…hipModuleLoad_tests
| add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/empty_module.code | ||
| COMMAND ${CMAKE_CXX_COMPILER} --genco --std=c++17 ${CMAKE_CURRENT_SOURCE_DIR}/empty_module.cc -o empty_module.code | ||
| DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/empty_module.cc) |
There was a problem hiding this comment.
genco does not work properly on windows yet. you will need to exclude this test building on windows. additionally you are missing specifying the offload arch & output path for building the code object. see unit/deviceLib/CMakeLists.txt for an example of how to do it for all of the above.
There was a problem hiding this comment.
Requested changes have been implemented, please proceed.
… path for code object build command
| } | ||
|
|
||
| // Disabled for AMD due to defect - EXSWHTEC-151 | ||
| #if HT_NVIDIA |
There was a problem hiding this comment.
Create a new TEST_CAST for this and disable it via json.
There was a problem hiding this comment.
The requested change has been implemented.
| } | ||
|
|
||
| // Disabled for AMD due to defect - EXSWHTEC-153 | ||
| #if HT_NVIDIA |
There was a problem hiding this comment.
The requested change has been implemented.
| } | ||
|
|
||
| // Disabled for AMD due to defect - EXSWHTEC-153 | ||
| #if HT_NVIDIA |
There was a problem hiding this comment.
The requested change has been implemented.
| HIP_CHECK(hipFree(nullptr)); | ||
|
|
||
| // Disabled for AMD due to defect - EXSWHTEC-152 | ||
| #if HT_NVIDIA |
There was a problem hiding this comment.
The requested change has been implemented.
There was a problem hiding this comment.
is the empty file necessary?
There was a problem hiding this comment.
The test requires a file that exists in the filesystem, but does not represent a valid module file. This seemed like the most straightforward approach.
…ail on AMD and NVIDIA and disable them via JSON
|
@rorake I don't see your comment for some reason, so I cannot quote reply to it. Merge conflicts have been resolved, please proceed. |
|
PR has been merged into develop branch via commit 2c6d940. |
…nd hipModuleUnload #20 Change-Id: I19d6534af2c33046dc3862372d45f32b6ccc6ad1
- ROCm/hip-tests#119 - ROCm/hip-tests#151 - ROCm/hip-tests#57 - ROCm/hip-tests#58 - ROCm/hip-tests#59 - ROCm/hip-tests#60 - ROCm/hip-tests#99 - ROCm/hip-tests#139 - ROCm/hip-tests#152 - ROCm/hip-tests#48 - ROCm/hip-tests#54 - ROCm/hip-tests#53 - ROCm/hip-tests#24 - ROCm/hip-tests#23 - ROCm/hip-tests#22 - ROCm/hip-tests#21 - ROCm/hip-tests#20 - ROCm/hip-tests#14 - ROCm/hip-tests#8 Change-Id: I1eea54cd1436f3ddbfd5c1b3b2f672eb81d03cd4 [ROCm/hip-tests commit: 96df1fd]
Uh oh!
There was an error while loading. Please reload this page.