Skip to content

I have a problem, could you give me some advice? #1

@MaGua-Bishop

Description

@MaGua-Bishop

ac6b:/code/gen_trx# python3 pygentrx.py
Traceback (most recent call last):
File "/code/gen_trx/pygentrx.py", line 131, in
main_getTrxAddress(keyCount=32, verify=True)
File "/code/gen_trx/pygentrx.py", line 103, in main_getTrxAddress
mod = SourceModule(kernel_code)
File "/root/miniconda3/lib/python3.10/site-packages/pycuda/compiler.py", line 355, in init
cubin = compile(
File "/root/miniconda3/lib/python3.10/site-packages/pycuda/compiler.py", line 304, in compile
return compile_plain(source, options, keep, nvcc, cache_dir, target)
File "/root/miniconda3/lib/python3.10/site-packages/pycuda/compiler.py", line 154, in compile_plain
raise CompileError(
pycuda.driver.CompileError: nvcc compilation of /tmp/tmpzbuo_u04/kernel.cu failed
[command: nvcc --cubin -arch sm_89 -I/root/miniconda3/lib/python3.10/site-packages/pycuda/cuda kernel.cu]
[stderr:
kernel.cu(254): error: identifier "uint8_t" is undefined
typedef uint8_t u8;
^

kernel.cu(255): error: identifier "uint16_t" is undefined
typedef uint16_t u16;
^

kernel.cu(256): error: identifier "uint32_t" is undefined
typedef uint32_t u32;
^

kernel.cu(257): error: identifier "uint64_t" is undefined
typedef uint64_t u64;
^

kernel.cu(4296): error: identifier "UINT64_C" is undefined
state[xi + yi + (yi << 2)] ^= UINT64_C(0x01) << ((blockOff & 7) << 3);
^

kernel.cu(6255): error: a value of type "const char [59]" cannot be used to initialize an entity of type "u8 []"
attribute((constant)) u8 B58_DIGITS_ORDERED[] = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
^

6 errors detected in the compilation of "kernel.cu".
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions