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.

WARNING: deprecated syntax in CompilerTools/src/helper #148

@ig0xb

Description

@ig0xb

Issue 1)
I get loads of warning when i use ParallelAccelerator

using ParallelAccelerator

WARNING: deprecated syntax "typealias LambdaInfo LambdaStaticData" at /Users/saran/.julia/v0.6/CompilerTools/src/helper.jl:57.
Use "const LambdaInfo = LambdaStaticData" instead.

WARNING: deprecated syntax "typealias GenSym SSAValue" at /Users/saran/.julia/v0.6/CompilerTools/src/helper.jl:63.
Use "const GenSym = SSAValue" instead.

WARNING: deprecated syntax "typealias LHSRealVar SlotNumber" at /Users/saran/.julia/v0.6/CompilerTools/src/helper.jl:72.
Use "const LHSRealVar = SlotNumber" instead.

WARNING: deprecated syntax "typealias LHSVar Union{SlotNumber,GenSym}" at /Users/saran/.julia/v0.6/CompilerTools/src/helper.jl:73.
Use "const LHSVar = Union{SlotNumber,GenSym}" instead.

WARNING: deprecated syntax "typealias RHSVar Union{SlotNumber,TypedSlot,GenSym}" at /Users/saran/.julia/v0.6/CompilerTools/src/helper.jl:74.
Use "const RHSVar = Union{SlotNumber,TypedSlot,GenSym}" instead.

WARNING: deprecated syntax "typealias TypedVar TypedSlot" at /Users/saran/.julia/v0.6/CompilerTools/src/helper.jl:75.
Use "const TypedVar = TypedSlot" instead.

WARNING: deprecated syntax "typealias LHSRealVar Symbol" at /Users/saran/.julia/v0.6/CompilerTools/src/helper.jl:82.
Use "const LHSRealVar = Symbol" instead.

WARNING: deprecated syntax "typealias LHSVar Union{Symbol,GenSym}" at /Users/saran/.julia/v0.6/CompilerTools/src/helper.jl:83.
Use "const LHSVar = Union{Symbol,GenSym}" instead.

WARNING: deprecated syntax "typealias RHSVar Union{Symbol,SymbolNode,GenSym}" at /Users/saran/.julia/v0.6/CompilerTools/src/helper.jl:84.
Use "const RHSVar = Union{Symbol,SymbolNode,GenSym}" instead.

WARNING: deprecated syntax "typealias TypedVar SymbolNode" at /Users/saran/.julia/v0.6/CompilerTools/src/helper.jl:85.
Use "const TypedVar = SymbolNode" instead.

WARNING: deprecated syntax "abstract ASTWALK_DIDNT_MODIFY" at /Users/saran/.julia/v0.6/CompilerTools/src/ast_walk.jl:39.
Use "abstract type ASTWALK_DIDNT_MODIFY end" instead.

WARNING: deprecated syntax "typealias DescType UInt8" at /Users/saran/.julia/v0.6/CompilerTools/src/lambda.jl:62.
Use "const DescType = UInt8" instead.

WARNING: deprecated syntax "typealias DescType Int64" at /Users/saran/.julia/v0.6/CompilerTools/src/lambda.jl:64.
Use "const DescType = Int64" instead.

WARNING: deprecated syntax "typealias CallbackType Union{Function,Void}" at /Users/saran/.julia/v0.6/CompilerTools/src/read-write-set.jl:108.
Use "const CallbackType = Union{Function,Void}" instead.
WARNING: could not import Base.call into API
WARNING: could not import Base.call into Lib
WARNING: could not import Base.call into NoInline

WARNING: deprecated syntax "typealias DimensionSelector Union{RangeData,MaskSelector,SingularSelector}" at /Users/saran/.julia/v0.6/ParallelAccelerator/src/parallel-ir.jl:283.
Use "const DimensionSelector = Union{RangeData,MaskSelector,SingularSelector}" instead.

Issue 2)
When i run the file i do get the below error. I am working on program which needs to read 5 different dataset from folder which has names data_batch_1 to data_batch_5 hence when i use the below code i get the error in the string interpolation.

function load_pickle_data(ROOT)

 	 for b=1:5
		f=joinpath(ROOT, "data_batch_$b") //this is the line which it points to in the error message.

//reset of the code omitted

WARNING: is is deprecated, use === instead.

Stacktrace:
 [1] 
depwarn(::String, ::Symbol) at ./deprecated.jl:70
 [2] is(::Symbol, ::Vararg{Symbol,N} where N) at ./deprecated.jl:31
 [3] is_function(::Expr) at /Users/saran/.julia/v0.6/CompilerTools/src/OptFramework.jl:935
 [4] @acc(::ANY, ::Vararg{Any,N} where N) at /Users/saran/.julia/v0.6/CompilerTools/src/OptFramework.jl:1014
 [5] include_string(::String, ::String) at ./loading.jl:515
 [6] include_string(::Module, ::String, ::String) at /Users/saran/.julia/v0.6/Compat/src/Compat.jl:1492
 [7] (::Atom.##55#58{String,String})() at /Users/saran/.julia/v0.6/Atom/src/eval.jl:73
 [8] withpath(::Atom.##55#58{String,String}, ::String) at /Users/saran/.julia/v0.6/CodeTools/src/utils.jl:30
 [9] withpath(::Function, ::String) at /Users/saran/.julia/v0.6/Atom/src/eval.jl:38
 [10] macro expansion at /Users/saran/.julia/v0.6/Atom/src/eval.jl:71 [inlined]
 [11] (::Atom.##54#57{Dict{String,Any}})() at ./task.jl:80
while loading /Users/saran/Documents/JuliaPgm/loadbatchutil.jl, in expression starting on line 5

**LoadError: syntax: CompilerTools.AstWalker.from_expr: unknown Expr head :string in "data_batch_$(b)"
while loading /Users/saran/Documents/JuliaPgm/loadbatchutil.jl, in expression starting on line 5**

Julia Version 0.6.0
Commit 903644385b (2017-06-19 13:05 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, haswell)

Kindly let me know how to resolve this issue.
Thank You

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