-
Notifications
You must be signed in to change notification settings - Fork 31
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
Integrate chipstar #459
base: develop
Are you sure you want to change the base?
Integrate chipstar #459
Conversation
* Improper string substitutions for kernel locations * Missing includes Still fails to compile - seems like this path is not used?
// template <typename... Typenames, typename K, typename Dim, typename... Args> | ||
// void launchKernel(K kernel, Dim numBlocks, Dim numThreads, std::uint32_t memPerBlock, | ||
// hipStream_t stream, Args&&... packedArgs) { | ||
// #ifndef RTC_TESTING | ||
// validateArguments(kernel, packedArgs...); | ||
// kernel<<<numBlocks, numThreads, memPerBlock, stream>>>(std::forward<Args>(packedArgs)...); | ||
// #else | ||
// launchRTCKernel<Typenames...>(kernel, numBlocks, numThreads, memPerBlock, stream, | ||
// std::forward<Args>(packedArgs)...); | ||
// #endif | ||
// HIP_CHECK(hipGetLastError()); | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't working - fix implemented below. With the following changes I was able to compile using LLVM17.
This solution seems not to respect const. Does the original implementation (can't test since it doesn't compile) ?
#ifndef KERNELS_PATH_H | ||
#define KERNELS_PATH_H | ||
|
||
#define KERNELS_PATH "@CMAKE_CURRENT_SOURCE_DIR@/kernels/" | ||
|
||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part also didn't compile. Tried escaping in the CMakeLists.txt but didn't work.
Compilation error in original code
|
|
Compilation error with -DRTC_TESTING=ON
|
* device-side mallloc and free, wall_clock placeholders were implemented
!verify |
@rakesroy Any information regarding intention to merge? |
Hi @pvelesko, |
This PR makes the necessary changes to enable these tests to work with chipStar HIP runtime.
CatchAddTests.cmake
and addCATCH2_DISCOVER_TESTS_COMPILE_TIME
CMake option to fix the compile-time test discovery.