nuxhash icon indicating copy to clipboard operation
nuxhash copied to clipboard

Can I mine with a single GPU?

Open hazemhagrass opened this issue 5 years ago • 7 comments

Hi, I have multiple GPUs. Can i mine with a single GPU only?

hazemhagrass avatar May 03 '19 01:05 hazemhagrass

Yes. If you can run the GUI, use the benchmarking window to disable all algorithms on the other cards.

YoRyan avatar May 03 '19 06:05 YoRyan

I could not see that option. Can you please send me some screenshots?

hazemhagrass avatar May 05 '19 07:05 hazemhagrass

My apologies. You can disable individual algorithms by zero'ing out the benchmark speed, but you cannot disable an entire GPU, because nuxhash will always pick at least one algorithm to run. I will add an explicit enable/disable control.

YoRyan avatar May 07 '19 23:05 YoRyan

Can't you disable it in the top dialog? Pretty sure that it is how I indicated I was not interested in cpu mining!

On Tue, 7 May 2019, 19:43 Ryan Young, [email protected] wrote:

My apologies. You can disable individual algorithms by zero'ing out the benchmark speed, but you cannot disable an entire GPU, because nuxhash will always pick at least one algorithm to run. I will add an explicit enable/disable control.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/YoRyan/nuxhash/issues/24#issuecomment-490293469, or mute the thread https://github.com/notifications/unsubscribe-auth/AIDCSM6PLRC6IRMUQMAUZILPUIHZ3ANCNFSM4HKOTTPQ .

F1Rumors avatar May 08 '19 00:05 F1Rumors

Nuxhash doesn't support CPU mining, period.

YoRyan avatar May 08 '19 05:05 YoRyan

@YoRyan Thanks a lot Looking forward to see it in action

hazemhagrass-incorta avatar May 08 '19 10:05 hazemhagrass-incorta

As a simple workaround, I disabled one single GPU by setting the CUDA_VISIBLE_DEVICES=id environment variable, and modifying the start_work method in excavator.py as such:

    def start_work(self, algorithm, device, benchmarking=False):
        """Start running algorithm on device."""
        # Create associated algorithm(s).
        for multialgorithm in algorithm.split('_'):
            algorithm_instance = self._running_algorithms[multialgorithm]
            algorithm_instance.set_benchmarking(benchmarking)
            algorithm_instance.grab()

        # Create worker.
        if device.pci_bus in self._device_map.keys():
            device_id = self._device_map[device.pci_bus]
            if benchmarking:
                response = self.send_command(
                    'worker.add', [f'benchmark-{algorithm}', device_id])
            else:
                response = self.send_command('worker.add', [algorithm, device_id])
            self._running_workers[(algorithm, device)] = response['worker_id']
        else:
            print("No worker on GPU", device)

marcdemers avatar Jan 23 '20 18:01 marcdemers