Skip to content

how to execute your program with m1mac(in other words, without using CUDA) #5

@jsato0807

Description

@jsato0807

i want to know how to execute youre program with m1mac. In other words, without using CUDA. when i tried executing your program, the error occured as below. i want to solve this problem.

Traceback (most recent call last):
File "/Users/keior/github/kabu_dir/test_gp.py", line 76, in
engine = Engine(fitness_func=calc_fit,
File "/Users/keior/miniforge3/envs/tf_m1/lib/python3.9/site-packages/tensorgp/engine.py", line 1475, in init
self.polar_mask = torch.ones(self.target_dims, dtype=torch.float32)
File "/Users/keior/miniforge3/envs/tf_m1/lib/python3.9/site-packages/torch/utils/_device.py", line 77, in torch_function
return func(*args, **kwargs)
File "/Users/keior/miniforge3/envs/tf_m1/lib/python3.9/site-packages/torch/cuda/init.py", line 293, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions