Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Using broadcast fails with OptFramework error #122

Open
@zerocewl

Description

@zerocewl

Hello,
I tried to use @acc function br(N) b=collect(1:N); broadcast(+,b,b')end

but this error comes up

julia> br(1000)
C:\Users\hiddenUserName\AppData\Local\Temp\jul556A.tmp/cgen_output1.cpp:2:19: fatal er
ror: cblas.h: No such file or directory
 #include <cblas.h>
                   ^
compilation terminated.
OptFramework failed to optimize function ##br#13544 in optimization pass Paralle
lAccelerator.Driver.toCGen with error ErrorException("failed process: Process(`'
C:\\Users\\hiddenUserName\\.julia\\v0.4\\WinRPM\\deps\\usr\\x86_64-w64-mingw32\\sys-ro
ot\\mingw\\bin\\g++' -O3 -fopenmp -std=c++11 -g -fpic -I 'C:\\Users\\hiddenUserName\\.
julia\\v0.4\\WinRPM\\deps\\usr\\x86_64-w64-mingw32\\sys-root\\mingw\\include' -c
 -o 'C:\\Users\\hiddenUserName\\AppData\\Local\\Temp\\jul556A.tmp/cgen_output1.o' 'C:\
\Users\\hiddenUserName\\AppData\\Local\\Temp\\jul556A.tmp/cgen_output1.cpp'`, ProcessE
xited(1)) [1]")
1000x1000 Array{Int64,2}:

Any suggestions for this error? Maybe any openblas path or variable is missing?

I'm using Win 7 with Julia 0.4.6:

 julia> versioninfo()
Julia Version 0.4.6
Commit 2e358ce (2016-06-19 17:16 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

My config.jl in ParallelAccelerator\deps\generated looks like that:

backend_compiler = USE_MINGW
openblas_lib = "libopenblas64_"
mkl_lib = ""
sys_blas = 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions