Skip to content

Commit

Permalink
load cuda kernels relative to app dir (not default), so platforms can…
Browse files Browse the repository at this point in the history
… override the location (needed on win32)

git-svn-id: https://xpra.org/svn/Xpra/trunk@16984 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 29, 2017
1 parent 0b66211 commit 069cf0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/codecs/cuda_common/cuda_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ def get_CUDA_function(device_id, function_name):
global KERNELS
data = KERNELS.get(function_name)
if data is None:
from xpra.platform.paths import default_get_app_dir
from xpra.platform.paths import get_app_dir
from xpra.os_util import load_binary_file
cubin_file = os.path.join(default_get_app_dir(), "cuda", "%s.fatbin" % function_name)
cubin_file = os.path.join(get_app_dir(), "cuda", "%s.fatbin" % function_name)
log("get_CUDA_function(%s, %s) cubin file=%s", device_id, function_name, cubin_file)
data = load_binary_file(cubin_file)
if not data:
Expand Down

0 comments on commit 069cf0b

Please sign in to comment.