Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.88 KB | None | 0 0
  1. Module validation failed: Incorrect number of arguments passed to called function!
  2.   %0 = call %"String::Builder"* @"*Pointer(Void)@Object::to_s<String::Builder>:String::Builder"(i32 %obj, %"String::Builder"* %self), !dbg !148
  3.  
  4. ???
  5. ???
  6. ???
  7. ???
  8. ???
  9. ???
  10. ???
  11. ???
  12.  
  13. Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues
  14.  
  15. This is due to:
  16.  
  17. describe CuDNN do
  18.  it "allocates memory" do
  19.    p = ::CuDNN.malloc(100)
  20.    p.should be_a(Pointer(Void))
  21.  end
  22. end
  23.  
  24. which calls
  25. module CuDNN
  26.  extend self
  27.  def malloc(size)
  28.    check_success(LibCUDA.malloc(out ptr, size))
  29.    return ptr
  30.  end
  31. end
  32.  
  33. which calls
  34.  
  35. @[Link("cudart")]
  36. lib LibCUDA
  37.  enum ErrorT
  38.    Success
  39.  end
  40.  fun malloc = cudaMalloc(ptr : Void**, size : LibC::Int) : ErrorT
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement