Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try runner with updated driver
Browse files Browse the repository at this point in the history
makslevental committed Aug 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 95b6988 commit 4b6bc6e
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
@@ -91,7 +91,7 @@ jobs:

test_linux:
name: E2E Test linux
runs-on: amd7940hs
runs-on: nod-nuc-linux-2
needs: build_and_ctest
strategy:
fail-fast: true
28 changes: 14 additions & 14 deletions compiler/plugins/target/AMD-AIE/iree-amd-aie/Target/XCLBinGen.cpp
Original file line number Diff line number Diff line change
@@ -93,20 +93,20 @@ using Path = std::filesystem::path;
namespace {

FailureOr<std::string> getNPUVersion() {
std::string errorMessage;
auto maybeVbnv =
openInputFile("/sys/bus/pci/devices/0000:c5:00.1/vbnv", &errorMessage);
if (!maybeVbnv) {
llvm::errs() << "couldn't read pci info for npu because: " << errorMessage;
return failure();
}

std::string vbnv = std::string{maybeVbnv->getBuffer()};
std::regex rgx("RyzenAI-(.*)");
std::smatch matches;
if (std::regex_search(vbnv, matches, rgx)) return {matches[1]};
llvm::errs() << "couldn't find npu version in " << vbnv;
return failure();
// std::string errorMessage;
// auto maybeVbnv =
// openInputFile("/sys/bus/pci/devices/0000:c5:00.1/vbnv", &errorMessage);
// if (!maybeVbnv) {
// llvm::errs() << "couldn't read pci info for npu because: " << errorMessage;
// return failure();
// }
//
// std::string vbnv = std::string{maybeVbnv->getBuffer()};
// std::regex rgx("RyzenAI-(.*)");
// std::smatch matches;
// if (std::regex_search(vbnv, matches, rgx)) return {matches[1]};
// llvm::errs() << "couldn't find npu version in " << vbnv;
return std::string{"npu1"};
}

FailureOr<std::string> getTargetDir() {

0 comments on commit 4b6bc6e

Please sign in to comment.