Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Disable some code triggering JuliaLang/julia#17288.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jul 6, 2016
1 parent c0cb8c0 commit 45e5ce8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/module.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,16 @@ immutable CuModuleData <: CuModule
end
optionKeys, optionValues = encode(options)

try
# NOTE: temporarily disabled because of JuliaLang/julia#17288
# try
@apicall(:cuModuleLoadDataEx,
(Ptr{CuModule_t}, Ptr{Cchar}, Cuint, Ref{CUjit_option}, Ref{Ptr{Void}}),
handle_ref, data, length(optionKeys), optionKeys, optionValues)
catch err
(err == ERROR_NO_BINARY_FOR_GPU || err == ERROR_INVALID_IMAGE) || rethrow(err)
options = decode(optionKeys, optionValues)
rethrow(CuError(err.code, options[ERROR_LOG_BUFFER]))
end
# catch err
# (err == ERROR_NO_BINARY_FOR_GPU || err == ERROR_INVALID_IMAGE) || rethrow(err)
# options = decode(optionKeys, optionValues)
# rethrow(CuError(err.code, options[ERROR_LOG_BUFFER]))
# end

if DEBUG
options = decode(optionKeys, optionValues)
Expand Down

0 comments on commit 45e5ce8

Please sign in to comment.