Quantcast
Channel: hashcat Forum - All Forums
Viewing all articles
Browse latest Browse all 7822

COMPUTE vs. DISPLAY

$
0
0
Is it just me or did AMD drop the COMPUTE environment variable overriding DISPLAY in 13.12? I found it very handy for ssh -X sessions but it doesn't work anymore.

Fwiw it could be worked around within oclHashcat, eg. like this:
Code:
char *env;

// Prefer COMPUTE over DISPLAY and lacking both, assume :0
env = getenv("COMPUTE");
if (env && *env)
    setenv("DISPLAY", env, 1);
else {
    env = getenv("DISPLAY");
    if (!env || !*env)
        setenv("DISPLAY", ":0", 1);
}

I was going to add a request on trac but I thought I'd ask for others opinions/insights first.

Viewing all articles
Browse latest Browse all 7822

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>