Python Forum

Full Version: Cannot run my python to use gpu? Please help :(
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I have that code, so I want to accelerate him to use GPU instead of CPU, but I get error.
I try useing python 2.7 and 3.7...
My pure python code is :

start = 20
unknown = 1
finish = 100


def test():
    global check
    check = start + unknown
    return check

check = test()
while check != finish:
    unknown += 1
    test() 
else:
    print(unknown)
Can I use this code with cuda?
I try few ways and I got to this error.
Error:
AttributeError: Failed at object (analyzing bytecode) 'DataFlowAnalysis' object has no attribute 'op_STORE_GLOBAL'
Im using python on Windows 7 ultimate sp1 64bit, core i5.
Thank you.
There's no issues with your code. How are you running it?