NVIDIA SMI shows lower CUDA version than NVCC

On an installation, when I run nvidia-smi, it shows the CUDA version as being 12.0. After installing the CUDA Toolkit, nvcc –version reports the version is 12.2. Is this a problem? Based on this very comprehensive answer, I understood that NVIDIA SMI can report a higher version number than NVCC. In this case, it is … Read more

Missing code after I reference dll in .NET project

I have .NET project that should reference dll(not a project reference) of class library. The library has several classes and interfaces. I will explain only the ones that might be related to the problem. Simple interface: public interface IEmailMessageRepository : IGeneralRepository<EmailMessage> { public Task<List<EmailMessage>> GetEmailsBySentStatus(bool sent); } Class that implements this interface: public class EmailMessageRepository … Read more

Sorting a list based on the similarity of the list elements with a given word

I am getting a list from the database. My task is to sort this list according to the highest similarity to a given word. Example: I get a list: list_name = [‘Alex Trucking’, ‘ALEX TRUCKING’, ‘Alex K Trucking’, ‘ALEX F TRUCKING’, ‘Alex FC Trucking’, ‘ALE TRUCKING’, ‘ALE trucking’, ‘ALEX TRUCKING LLC’, ‘Alex Trucking LLC’, ‘AL … Read more

How to fill DataGridViewComboBoxColumn items differently for each row

I have the following code: private void FillJobDescriptionItems(int rowIndex) { DataGridViewRow row = dataGridViewTimesheetEntries.Rows[rowIndex]; // Get the job number and title, and customer name for a specific job Job? jobDescriptionObj = (Job?)row.Cells[jobDataGridViewTextBoxColumn.Index].Value; if (jobDescriptionObj != null) { VwJob? jobVwJob = (VwJob?)_dbContext.VwJobs.Where(x => x.Id == jobDescriptionObj.Id).FirstOrDefault(); if (jobVwJob != null) { List<VwJob> jobCustomers = (List<VwJob>)(_dbContext.VwJobs.Where(x => … Read more

XmlSerializer.GenerateSerializer alternate in NetCore

We use XmlSerializer in our code to generate temporary assemblies containing serializers. These asesemblies are then cached, which ensure that resource consumption is low. Our application is in .NET Framework, and the code we are using currently is – XmlSerializer.GenerateSerializer( types.ToArray(), xmlMapping.ToArray(), parameters); We are looking to move our code to .NET core, and I … Read more