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

running on ARM64? #1213

Open
led555 opened this issue Apr 17, 2024 · 6 comments
Open

running on ARM64? #1213

led555 opened this issue Apr 17, 2024 · 6 comments

Comments

@led555
Copy link

led555 commented Apr 17, 2024

Hello, I have no idea what I'm doing. I'm trying to run on an ARM64 system, and I get the following errors:

I ran the loadgen install and everything worked fine, running the vision benchmarks, fails.

` C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\arm64\Microsoft.Common.CurrentVersion.targets(839,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='ARM64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [C:\Users\xxx\CM\repos\local\cache\38b305ec229b43d0\inference\loadgen\CMakeFiles\3.28.3\VCTargetsPath.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.07

Exit code: 1

-- Configuring incomplete, errors occurred!

CM error: Portable CM script failed (name = get-mlperf-inference-loadgen, return code = 1)`

@gfursin
Copy link
Contributor

gfursin commented Apr 17, 2024

Hi! Can you provide the original CM command and the full log (including where you build loadgen), please?

I tested CM workflow to run MLPerf on Windows with x64 but I don't think we ever tried to run it with ARM64 on Windows (I don't have an access to such a platform) ...

It will be useful to add such a support! Thanks!

@led555
Copy link
Author

led555 commented Apr 18, 2024

Hello,

It appears the loadgen is located here : C:\Users\xxx\AppData\Local\Programs\Python\Python312\Lib\site-packages\mlperf_loadgen-4.0.dist-info

I buit loadgen from this location : C:\ML Commons benchmarking\inference-master\mlperf_inference\loadgen

when I run this command : cm run script "test mlperf-inference-win retinanet windows" , I get this:

` C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\arm64\Microsoft.Common.CurrentVersion.targets(839,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='ARM64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [C:\Users\xxx\CM\repos\local\cache\38b305ec229b43d0\inference\loadgen\CMakeFiles\3.28.3\VCTargetsPath.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.07

Exit code: 1

-- Configuring incomplete, errors occurred!

CM error: Portable CM script failed (name = get-mlperf-inference-loadgen, return code = 1)`

when I run this command : cmr "run mlperf inference generate-run-cmds _submission" --quiet --submitter="MLCommons" --hw_name=default --model=resnet50 --implementation=reference --backend=onnxruntime --device=cpu --scenario=Offline --adr.compiler.tags=gcc --target_qps=1 --category=edge --division=open , I get this :

`Path to the MLPerf inference benchmark configuration file: C:\Users\xxx\CM\repos\local\cache\38b305ec229b43d0\inference\mlperf.conf
Path to MLPerf inference benchmark sources: C:\Users\xxx\CM\repos\local\cache\38b305ec229b43d0\inference

  * cm run script "get cl gcc"

CM error: no scripts were found with above tags (when variations ignored)!
`

@gfursin
Copy link
Contributor

gfursin commented Apr 23, 2024

I didn't have time to look at it yet (had several deadlines) but I remember that there was an issue with CM scripts running on Windows with paths that have spaces ... Do you think you can try to create a test user without spaces and use work directory also without spaces? Maybe it will help?

@led555
Copy link
Author

led555 commented May 1, 2024

Hello,

I removed spaces from the file paths as much as I could. I still get this error:

"C:\Users\xxx\CM\repos\local\cache\e5c509c0e17e46e3\inference\loadgen\CMakeFiles\3.28.3\VCTargetsPath.vcxproj" (default target) (1) ->
(_CheckForInvalidConfigurationAndPlatform target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\arm64\Microsoft.Common.CurrentVersion.targets(839,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Debug'  Platform='ARM64'.  You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [C:\Users\xxx\CM\repos\local\cache\e5c509c0e17e46e3\inference\loadgen\CMakeFiles\3.28.3\VCTargetsPath.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.07

Exit code: 1

-- Configuring incomplete, errors occurred!

CM error: Portable CM script failed (name = get-mlperf-inference-loadgen, return code = 1)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Note that it may be a portability issue of a third-party tool or a native script
wrapped and unified by this automation recipe (CM script). In such case,
please report this issue with a full log at "https://github.com/mlcommons/ck".
The CM concept is to collaboratively fix such issues inside portable CM scripts
to make existing tools and native scripts more portable, interoperable
and deterministic. Thank you!

@led555
Copy link
Author

led555 commented May 1, 2024

do you think this path may be problematic?: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools...

@gfursin
Copy link
Contributor

gfursin commented Oct 7, 2024

If this is not yet solved, this ticket should move to https://github.com/mlcommons/cm4mlops .

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

No branches or pull requests

2 participants