我正在尝试在 Windows 10 上的 Visual Studio 2015 中的 AleaGPUTutorial 项目中构建 fsharp 项目。在参考下,FSharp.Core.dll 的路径显示为 C:\Program Files (x86)\Reference Assemblies\Microsoft\ FSharp.NETFramework\v4.0\4.3.1.0\FSharp.Core.dll。所以我认为这与最近发布的使用不同版本(4.4.0.0)的问题无关。此外,另一个问题中的错误消息与我在下面引用的内容不同。在另一个问题中,错误是关于无法加载/找到 4.3.1.0 而我得到的与 AOTCompilerServer 意外退出有关。
当我尝试清理构建时(仅 fsharp 项目,我目前对 csharp 不感兴趣)我收到以下错误:
1>------ Rebuild All started: Project: Tutorial.Fs, Configuration: Release Any CPU ------
1> "C:\Users\panga\project\AleaGPUTutorial\.paket\paket.exe" restore --references-files "C:\Users\panga\project\AleaGPUTutorial\src\fsharp\paket.references"
1> Paket version 2.3.6.0
1> 0 seconds - ready.
1> C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\fsc.exe -o:C:\Users\panga\project\AleaGPUTutorial\obj\Release\Tutorial.Fs.exe --debug:pdbonly --noframework --define:TRACE --doc:C:\Users\panga\project\AleaGPUTutorial\release\Tutorial.Fs.XML --optimize+ --platform:anycpu -r:C:\Users\panga\project\AleaGPUTutorial\packages\Alea.CUDA\lib\net40\Alea.CUDA.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\Alea.CUDA.IL\lib\net40\Alea.CUDA.IL.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\Alea.CUDA.Unbound\lib\net40\Alea.CUDA.Unbound.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\Alea.IL\lib\net40\Alea.IL.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\FSharp.Charting\lib\net40\FSharp.Charting.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\FSharp.Collections.ParallelSeq\lib\net40\FSharp.Collections.ParallelSeq.dll -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\4.3.1.0\FSharp.Core.dll" -r:C:\Users\panga\project\AleaGPUTutorial\packages\FSharp.Data\lib\net40\FSharp.Data.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\FsUnit\lib\FsUnit.CustomMatchers.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\FsUnit\lib\FsUnit.NUnit.dll -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" -r:C:\Users\panga\project\AleaGPUTutorial\packages\NUnit\lib\nunit.framework.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\OpenTK\lib\NET40\OpenTK.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\SharpDX.Direct3D9\lib\net40\SharpDX.Direct3D9.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\SharpDX\lib\net40\SharpDX.dll -r:C:\Users\panga\project\AleaGPUTutorial\packages\SharpDX.RawInput\lib\net40\SharpDX.RawInput.dll -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Configuration.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Drawing.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Numerics.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Forms.DataVisualization.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Windows.Forms.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.Linq.dll" --target:exe --warn:3 --warnaserror:76 --vserrors --LCID:1033 --utf8output --fullpaths --flaterrors --subsystemversion:6.00 --highentropyva+ --sqmsessionguid:c887d569-3afb-4cf0-831a-00f69195ce58 --quotations-debug "C:\Users\panga\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.fs" getting_started\ParallelSquare.fs advanced_techniques\GenericTransform.fs advanced_techniques\GenericMatrixMult.fs profiling_and_performance_tuning\GenericMatrixTransp.fs examples\device_query\DeviceQuery.fs examples\basic_examples\ParallelArrayTransformation.fs examples\simple_scan\SimpleScan.fs examples\matrix_transpose\MatrixTransp.fs examples\matrix_multiplication\MatrixMult.fs examples\generic_reduce\Plan.fs examples\generic_reduce\Reduce.fs examples\generic_reduce\Sum.fs examples\generic_reduce\ScalarProd.fs examples\generic_reduce\ReduceApi.fs examples\generic_reduce\Test.fs examples\generic_scan\Plan.fs examples\generic_scan\Scan.fs examples\generic_scan\Sum.fs examples\generic_scan\ScanApi.fs examples\generic_scan\Test.fs examples\moving_average\MovingAverage.fs examples\tridiag_solver\Solver.fs examples\heat_pde\Solver.fs examples\heat_pde\Direct3d.fs examples\unbound\Reduce.fs examples\unbound\Scan.fs examples\unbound\BlockRangeScan.fs examples\unbound\MatrixMult.fs examples\unbound\Random.fs examples\cublas\Util.fs examples\cublas\Axpy.fs examples\cublas\Gemm.fs examples\cublas\GemmBatched.fs examples\cudnn\Data.fs examples\cudnn\Layer.fs examples\cudnn\Network.fs examples\cudnn\Mnist.fs examples\cudnn\Data.fs examples\cudnn\Layer.fs examples\cudnn\Network.fs examples\curand\EstimatePi.fs examples\nbody\NBody.Common.fs examples\nbody\NBody.CPU.fs examples\nbody\NBody.GPU.DynamicBlockSize.fs examples\nbody\NBody.GPU.StaticBlockSize.fs examples\nbody\NBody.OpenGL.fs examples\random_forest\DataModel.fs examples\random_forest\Cublas.fs examples\random_forest\Array.fs examples\random_forest\GpuSplitEntropy.fs examples\random_forest\RandomForest.fs examples\random_forest\Test.fs examples\random_forest\Performance.fs examples\random_forest\IrisExample.fs examples\particles\Particles.fs examples\simpled3d9\SimpleD3D9.fs Program.fs
1>C:\Users\panga\project\AleaGPUTutorial\src\fsharp\advanced_techniques\GenericMatrixMult.fs(138,37): warning FS3189: Redundant arguments are being ignored in function 'failwith'. Expected 1 but got 2 arguments.
1>C:\Users\panga\project\AleaGPUTutorial\src\fsharp\advanced_techniques\GenericMatrixMult.fs(139,37): warning FS3189: Redundant arguments are being ignored in function 'failwith'. Expected 1 but got 2 arguments.
1>C:\Users\panga\project\AleaGPUTutorial\src\fsharp\advanced_techniques\GenericMatrixMult.fs(140,37): warning FS3189: Redundant arguments are being ignored in function 'failwith'. Expected 1 but got 2 arguments.
1>C:\Users\panga\project\AleaGPUTutorial\src\fsharp\advanced_techniques\GenericMatrixMult.fs(141,26): warning FS3189: Redundant arguments are being ignored in function 'failwith'. Expected 1 but got 3 arguments.
1>C:\Users\panga\project\AleaGPUTutorial\src\fsharp\examples\matrix_multiplication\MatrixMult.fs(88,37): warning FS3189: Redundant arguments are being ignored in function 'failwith'. Expected 1 but got 2 arguments.
1>C:\Users\panga\project\AleaGPUTutorial\src\fsharp\examples\matrix_multiplication\MatrixMult.fs(89,37): warning FS3189: Redundant arguments are being ignored in function 'failwith'. Expected 1 but got 2 arguments.
1>C:\Users\panga\project\AleaGPUTutorial\src\fsharp\examples\matrix_multiplication\MatrixMult.fs(90,37): warning FS3189: Redundant arguments are being ignored in function 'failwith'. Expected 1 but got 2 arguments.
1>C:\Users\panga\project\AleaGPUTutorial\src\fsharp\examples\matrix_multiplication\MatrixMult.fs(91,26): warning FS3189: Redundant arguments are being ignored in function 'failwith'. Expected 1 but got 3 arguments.
1>C:\Users\panga\project\AleaGPUTutorial\src\fsharp\examples\random_forest\GpuSplitEntropy.fs(262,25): warning FS0049: Uppercase variable identifiers should not generally be used in patterns, and may indicate a misspelt pattern name.
1>C:\Users\panga\project\AleaGPUTutorial\src\fsharp\examples\random_forest\GpuSplitEntropy.fs(262,44): warning FS0049: Uppercase variable identifiers should not generally be used in patterns, and may indicate a misspelt pattern name.
1> Fody: Fody (version 1.29.3.0) Executing
1> Fody/Alea.CUDA: Compiling GPU code for assembly 'Tutorial.Fs.exe'...
1> Fody/Alea.CUDA: Compilation environment: machineArch(X86) os(Windows) is64os(true) is64proc(false) assemblyArch(I386) assemblyRuntime(v4.0.30319)
1> Fody/Alea.CUDA: Launching C:\Users\panga\project\AleaGPUTutorial\Packages\Alea.CUDA.Fody\Alea.CUDA.AOTCompileServer.net40.fs31.x86.exe process...
1> Fody/Alea.CUDA: [ERROR] AOTCompileServer exited unexpectly with exit code -532462766.
1> error : Fody/Alea.CUDA: AOTCompileServer exited unexpectly with exit code -532462766.
1> Fody/Alea.CUDA: [ERROR] AOTCompileServer exited unexpectly with exit code -532462766.
1> error : Fody/Alea.CUDA: AOTCompileServer exited unexpectly with exit code -532462766.
1> Fody/Alea.CUDA: Compiling GPU code on compile server, this might take some time...
1> Fody/Alea.CUDA: [ERROR] System.Runtime.Remoting.RemotingException: Failed to write to an IPC Port: The parameter is incorrect.
1>
1> Fody/Alea.CUDA: [ERROR] AOTCompileServer exited unexpectly with exit code -532462766.
1> error : Fody/Alea.CUDA: AOTCompileServer exited unexpectly with exit code -532462766.
1> Fody/Alea.CUDA: [ERROR] AOTCompileServer exited with exit code -532462766.
1> Fody/Alea.CUDA: [ERROR] No results generated.
1> Fody/Alea.CUDA: Compile result: 0 resources, 3 errors, 0 warnings.
1> Fody/Alea.CUDA: [ERROR] Compile failed, 3 errors.
1> error : Fody/Alea.CUDA: Compile failed, 3 errors.
1> Fody: Finished Fody 3492ms.
1>Done building project "Tutorial.Fs.fsproj" -- FAILED.
1>
1>Build FAILED.
有人知道我可能错过了什么吗?任何指针都非常感谢。提前非常感谢!