SWDEV-537473 - kernel path fix for windows (#286)
[ROCm/hip-tests commit: 797c104b4d]
This commit is contained in:
@@ -35,6 +35,7 @@ THE SOFTWARE.
|
|||||||
#include "hip/hip_runtime_api.h"
|
#include "hip/hip_runtime_api.h"
|
||||||
#include "hip_test_context.hh"
|
#include "hip_test_context.hh"
|
||||||
|
|
||||||
|
#define STRINGIFY(x) #x
|
||||||
namespace HipTest {
|
namespace HipTest {
|
||||||
|
|
||||||
struct KernelArgument {
|
struct KernelArgument {
|
||||||
@@ -107,7 +108,7 @@ inline std::vector<char> getKernelCode(hiprtcProgram& rtcProgram) {
|
|||||||
*/
|
*/
|
||||||
inline hiprtcProgram compileRTC(std::string& rtcKernel, std::string& kernelNameExpression) {
|
inline hiprtcProgram compileRTC(std::string& rtcKernel, std::string& kernelNameExpression) {
|
||||||
std::string fileName = mapKernelToFileName.at(rtcKernel);
|
std::string fileName = mapKernelToFileName.at(rtcKernel);
|
||||||
std::string filePath{KERNELS_PATH + fileName};
|
std::string filePath{STRINGIFY(KERNELS_PATH) + fileName};
|
||||||
|
|
||||||
INFO("Opening Kernel File: " << filePath);
|
INFO("Opening Kernel File: " << filePath);
|
||||||
std::ifstream kernelFile{filePath};
|
std::ifstream kernelFile{filePath};
|
||||||
|
|||||||
Reference in New Issue
Block a user