Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

radekdoulik
Copy link
Member

@radekdoulik radekdoulik commented Jan 18, 2023

Change default value of WasmEnableSIMD property to true. That enables SIMD for wasm/AOT.

Use docker image with newer v8 and node on helix.

@ghost ghost added the area-Build-mono label Jan 18, 2023
@ghost ghost assigned radekdoulik Jan 18, 2023
@radekdoulik radekdoulik requested a review from lewing January 18, 2023 18:02
Co-authored-by: Ankit Jain <[email protected]>
@radekdoulik
Copy link
Member Author

Currently we fail on helix because v8 is too old. I am trying to improve that with 2 independent approaches, #80808 and dotnet/dotnet-buildtools-prereqs-docker#774

radical and others added 8 commits January 19, 2023 22:55
.. instead crashing with an exception like:

```
src/mono/wasm/build/WasmApp.Native.targets(296,5): error MSB4018: (NETCORE_ENGINEERING_TELEMETRY=Build) The "ManagedToNativeGenerator" task failed unexpectedly.
System.BadImageFormatException: This PE image is not a managed executable.
   at System.Reflection.MetadataLoadContext.LoadFromStreamCore(Stream peStream)
   at System.Reflection.MetadataLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at PInvokeTableGenerator.Generate(String[] pinvokeModules, String[] assemblies, String outputPath) in /_/src/tasks/WasmAppBuilder/PInvokeTableGenerator.cs:line 42
   at ManagedToNativeGenerator.ExecuteInternal() in /_/src/tasks/WasmAppBuilder/ManagedToNativeGenerator.cs:line 68
   at ManagedToNativeGenerator.Execute() in /_/src/tasks/WasmAppBuilder/ManagedToNativeGenerator.cs:line 53
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
```

The wasm targets currently are not able to differentiate the managed
assemblies from the unmanaged ones. so it needs to be handled here.
…leSIMD=true

Instead, let the property be effective only for the AOT case.
@radical
Copy link
Member

radical commented Jan 20, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Also remove --experimental-wasm-simd option, which shouldn't be needed
for newer v8
@radical radical added the arch-wasm WebAssembly architecture label Jan 20, 2023
@ghost
Copy link

ghost commented Jan 20, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Let see how it goes on CI

Author: radekdoulik
Assignees: radekdoulik
Labels:

arch-wasm, area-Build-mono

Milestone: -

Let see whether it will avoid all the writes to correlation payload
path
To try if we can use newer node in path
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radekdoulik radekdoulik marked this pull request as ready for review February 21, 2023 18:58
Copy link
Member

@lewing lewing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but we need to resolve the wbt failure

@radical
Copy link
Member

radical commented Feb 27, 2023

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radekdoulik
Copy link
Member Author

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radekdoulik
Copy link
Member Author

The runtime-wasm (Build browser-wasm linux Release LibraryTests_NodeJs) fails on main too.

@lewing
Copy link
Member

lewing commented Mar 1, 2023

The runtime-wasm (Build browser-wasm linux Release LibraryTests_NodeJs) fails on main too.

@maraf are you looking into this?

Copy link
Member

@kg kg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, with the caveat that I don't have the ability to fully vet the yml or msbuild bits (but the latter do look correct to me), and I left some comments

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Build-mono
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants