Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error blackscholes for N=10^2 #36

Closed
davidbp opened this issue Jul 9, 2017 · 2 comments
Closed

Error blackscholes for N=10^2 #36

davidbp opened this issue Jul 9, 2017 · 2 comments

Comments

@davidbp
Copy link

davidbp commented Jul 9, 2017

Hello

I 'ved tried your black scholes script on a mac and I get the following results. It seems to work but an ERROR message is printed. Do you have the same behaviour?

INFO: Running benchmarks number of threads: 1
| Backend | Time (μs) for N = 10^1 |
| ---- | ---- |
| JLContext Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz with 1 threads |   0.00 μs|
| CLContext: AMD Radeon HD - FirePro D300 Compute Engine |   0.00 μs|

| Backend | Time (μs) for N = 10^2 |
| ---- | ---- |
| JLContext Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz with 1 threads |   0.00 μs|
| CLContext: AMD Radeon HD - FirePro D300 Compute Engine |   0.00 μs|
ERROR (unhandled task failure): MethodError: no method matching unsafe_string(::Ptr{Void})
Closest candidates are:
  unsafe_string(!Matched::Cstring) at c.jl:79
  unsafe_string(!Matched::Union{Ptr{Int8}, Ptr{UInt8}}) at strings/string.jl:39
  unsafe_string(!Matched::Union{Ptr{Int8}, Ptr{UInt8}}, !Matched::Integer) at strings/string.jl:35
Stacktrace:
 [1] macro expansion at /Users/macpro/.julia/v0.6/OpenCL/src/context.jl:95 [inlined]
 [2] (::OpenCL.cl.##43#44)() at ./task.jl:335

| Backend | Time (μs) for N = 10^3 |
| ---- | ---- |
| JLContext Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz with 1 threads |   0.00 μs|
| CLContext: AMD Radeon HD - FirePro D300 Compute Engine |   0.00 μs|

| Backend | Time (μs) for N = 10^4 |
| ---- | ---- |
| JLContext Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz with 1 threads |   0.00 μs|
| CLContext: AMD Radeon HD - FirePro D300 Compute Engine |   0.00 μs|

| Backend | Time (μs) for N = 10^5 |
| ---- | ---- |
| JLContext Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz with 1 threads |   0.01 μs|
| CLContext: AMD Radeon HD - FirePro D300 Compute Engine |   0.00 μs|

| Backend | Time (μs) for N = 10^6 |
| ---- | ---- |
| JLContext Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz with 1 threads |   0.09 μs|
| CLContext: AMD Radeon HD - FirePro D300 Compute Engine |   0.00 μs|

| Backend | Time (μs) for N = 10^7 |
| ---- | ---- |
| JLContext Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz with 1 threads |   0.92 μs|
| CLContext: AMD Radeon HD - FirePro D300 Compute Engine |   0.04 μs|
@jpsamaroo
Copy link
Member

jpsamaroo commented Jul 10, 2017

This is a known OpenCL.jl issue: Issue 111. I get this error as well, but just ignore it since it usually doesn't cause the running script to fail. It occurs on at least Linux and OSX, and for pretty much every OpenCL script I run, so it's not isolated to GPUArrays.

@davidbp
Copy link
Author

davidbp commented Jul 15, 2017

OK, than you for your answer.

@davidbp davidbp closed this as completed Jul 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants