Changeset f872fd1 in sasmodels for sasmodels/kernelcuda.py


Ignore:
Timestamp:
Oct 26, 2018 1:04:05 PM (5 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
153f8f6
Parents:
d42dd4a
Message:

simplify F32/F64 handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernelcuda.py

    r869fd7b rf872fd1  
    433433        self.q_input = GpuInput(q_vectors, dtype) 
    434434        self.kernel = kernel 
    435         self._as_dtype = (np.float32 if dtype == generate.F32 
    436                           else np.float64 if dtype == generate.F64 
    437                           else np.float16 if dtype == generate.F16 
    438                           else np.float32)  # will never get here, so use np.float32 
     435        # F16 isn't sufficient, so don't support it 
     436        self._as_dtype = np.float64 if dtype == generate.F64 else np.float32 
    439437 
    440438        # attributes accessed from the outside 
Note: See TracChangeset for help on using the changeset viewer.